Changeset 0c6b92a for imaps-frontend/node_modules/eslint-plugin-react/lib/util/makeNoMethodSetStateRule.js
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/eslint-plugin-react/lib/util/makeNoMethodSetStateRule.js
rd565449 r0c6b92a 45 45 } 46 46 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 */ 47 53 module.exports = function makeNoMethodSetStateRule(methodName, shouldCheckUnsafeCb) { 48 54 return { … … 91 97 callee.type !== 'MemberExpression' 92 98 || callee.object.type !== 'ThisExpression' 99 || !('name' in callee.property) 93 100 || callee.property.name !== 'setState' 94 101 ) {
Note:
See TracChangeset
for help on using the changeset viewer.