Ignore:
Timestamp:
12/12/24 17:06:06 (5 weeks ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
d565449
Message:

Pred finalna verzija

File:
1 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/eslint-plugin-react/lib/rules/no-set-state.js

    rd565449 r0c6b92a  
    3939     * Checks if the component is valid
    4040     * @param {Object} component The component to process
    41      * @returns {Boolean} True if the component is valid, false if not.
     41     * @returns {boolean} True if the component is valid, false if not.
    4242     */
    4343    function isValid(component) {
    44       return Boolean(component && !component.useSetState);
     44      return !!component && !component.useSetState;
    4545    }
    4646
     
    5050     */
    5151    function reportSetStateUsages(component) {
    52       let setStateUsage;
    5352      for (let i = 0, j = component.setStateUsages.length; i < j; i++) {
    54         setStateUsage = component.setStateUsages[i];
     53        const setStateUsage = component.setStateUsages[i];
    5554        report(context, messages.noSetState, 'noSetState', {
    5655          node: setStateUsage,
Note: See TracChangeset for help on using the changeset viewer.