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-direct-mutation-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.mutateSetState);
     44      return !!component && !component.mutateSetState;
    4545    }
    4646
     
    7474     * Determine if we should currently ignore assignments in this component.
    7575     * @param {?Object} component The component to process
    76      * @returns {Boolean} True if we should skip assignment checks.
     76     * @returns {boolean} True if we should skip assignment checks.
    7777     */
    7878    function shouldIgnoreComponent(component) {
Note: See TracChangeset for help on using the changeset viewer.