You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1) no-typos
valid
import createReactClass from 'create-react-class'
function hello (extra = {}) {
// @ts-ignore
// eslint-disable-next-line react/prefer-es6-class
return createReactClass({
noteType: 'hello',
renderItem () {
return null
},
...extra
})
}
:
TypeError: Cannot read property 'name' of undefined
Occurred while linting <input>:6
at reportErrorIfPropertyCasingTypo (lib/rules/no-typos.js:9:6557)
at /Users/swang/Desktop/eslint-plugin-react/lib/rules/no-typos.js:9:13772
at Array.forEach (<anonymous>)
at ObjectExpression (lib/rules/no-typos.js:9:13714)
at updatedRuleInstructions.<computed> (lib/util/Components.js:9:50421)
at /Users/swang/Desktop/eslint-plugin-react/node_modules/eslint/lib/linter/safe-emitter.js:45:58
at Array.forEach (<anonymous>)
at Object.emit (node_modules/eslint/lib/linter/safe-emitter.js:45:38)
at NodeEventGenerator.applySelector (node_modules/eslint/lib/linter/node-event-generator.js:254:26)
at NodeEventGenerator.applySelectors (node_modules/eslint/lib/linter/node-event-generator.js:283:22)
at NodeEventGenerator.enterNode (node_modules/eslint/lib/linter/node-event-generator.js:297:14)
at CodePathAnalyzer.enterNode (node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:711:23)
at /Users/swang/Desktop/eslint-plugin-react/node_modules/eslint/lib/linter/linter.js:952:32
at Array.forEach (<anonymous>)
at runRules (node_modules/eslint/lib/linter/linter.js:947:15)
at Linter._verifyWithoutProcessors (node_modules/eslint/lib/linter/linter.js:1173:31)
at Linter.verify (node_modules/eslint/lib/linter/linter.js:1236:21)
at runRuleForItem (node_modules/eslint/lib/rule-tester/rule-tester.js:556:37)
at testValidTemplate (node_modules/eslint/lib/rule-tester/rule-tester.js:605:28)
at Context.<anonymous> (node_modules/eslint/lib/rule-tester/rule-tester.js:885:25)
at processImmediate (internal/timers.js:456:21)
The text was updated successfully, but these errors were encountered:
Reproducible example:
0001-s.txt
Error message:
The text was updated successfully, but these errors were encountered: