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
Oops! Something went wrong! :(
ESLint: 8.56.0
TypeError: Cannot read properties of undefined (reading 'loc')
Occurred while linting FOO.vue:21
Rule: "@silvermine/silvermine/call-indentation"
at validateCallIndentation (<FOO>/node_modules/@silvermine/eslint-plugin-silvermine/lib/rules/call-indentation.js:34:51)
at CallExpression (<FOO>/node_modules/@silvermine/eslint-plugin-silvermine/lib/rules/call-indentation.js:140:13)
at ruleErrorHandler (<FOO>/node_modules/eslint/lib/linter/linter.js:1076:28)
at <FOO>/node_modules/eslint/lib/linter/safe-emitter.js:45:58
at Array.forEach (<anonymous>)
at Object.emit (<FOO>/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
at NodeEventGenerator.applySelector (<FOO>/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
at NodeEventGenerator.applySelectors (<FOO>/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
at NodeEventGenerator.enterNode (<FOO>/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
at CodePathAnalyzer.enterNode (<FOO>/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:803:23)
Parsing code like this in a
.vue
file:Results in a type error:
It seems that lib/rules/call-indentation.js#L29-L30 fails to consider the possibility that a multi-line call does not have any arguments.
The text was updated successfully, but these errors were encountered: