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/util/makeNoMethodSetStateRule.js

    rd565449 r0c6b92a  
    4545}
    4646
     47// eslint-disable-next-line valid-jsdoc
     48/**
     49 * @param {string} methodName
     50 * @param {(context: import('eslint').Rule.RuleContext) => boolean} [shouldCheckUnsafeCb]
     51 * @returns {import('eslint').Rule.RuleModule}
     52 */
    4753module.exports = function makeNoMethodSetStateRule(methodName, shouldCheckUnsafeCb) {
    4854  return {
     
    9197            callee.type !== 'MemberExpression'
    9298            || callee.object.type !== 'ThisExpression'
     99            || !('name' in callee.property)
    93100            || callee.property.name !== 'setState'
    94101          ) {
Note: See TracChangeset for help on using the changeset viewer.