-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
accepting prsGo ahead, send a pull request that resolves this issueGo ahead, send a pull request that resolves this issuebugSomething isn't workingSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin
Milestone
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have searched for related issues and found none that matched my issue.
- I have read the FAQ and my problem is not listed.
Playground Link
Repro Code
const a = <TYPE,>() => {}
ESLint Config
module.exports = {
parser: "@typescript-eslint/parser",
rules: {
"@typescript-eslint/comma-dangle": ["error", {"generics": "ignore"}],
},
};
tsconfig
Expected Result
I expected eslint to not crash.
Actual Result
Eslint crashes in linter.js
, exact error (credits for the stack trace @sharpdressedcodes):
TypeError: ruleListener is not a function
Occurred while linting /home/node/app/custom.d.ts:32
Rule: "@typescript-eslint/comma-dangle"
at ruleErrorHandler (/home/node/app/node_modules/eslint/lib/linter/linter.js:1061:28)
at /home/node/app/node_modules/eslint/lib/linter/safe-emitter.js:45:58
at Array.forEach (<anonymous>)
at Object.emit (/home/node/app/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
at NodeEventGenerator.applySelector (/home/node/app/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
at NodeEventGenerator.applySelectors (/home/node/app/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
at NodeEventGenerator.enterNode (/home/node/app/node_modules/eslint/lib/linter/node-event-generator.js:340:14)
at CodePathAnalyzer.enterNode (/home/node/app/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:795:23)
at /home/node/app/node_modules/eslint/lib/linter/linter.js:1096:32
at Array.forEach (<anonymous>)
Additional Info
The change in comma-dangle.ts
in this commit is causing the issue: 42fe29f#diff-511375b235a2f19339f4938328ad1f97c7da71d62736b0701cf9ea4eaf5e54aa
Metadata
Metadata
Assignees
Labels
accepting prsGo ahead, send a pull request that resolves this issueGo ahead, send a pull request that resolves this issuebugSomething isn't workingSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin