Replies: 3 comments 2 replies
-
|
I guess I made a mistake, it worked eslint/tests/lib/eslint/eslint.js Line 2125 in c6ee180 |
Beta Was this translation helpful? Give feedback.
-
It's using id from For example: new ESLint({
plugins: {
foo
},
baseConfig: {
rules: {
"foo/my-rule": 2
},
plugins: ["foo"] // <--
}
}); |
Beta Was this translation helpful? Give feedback.
-
|
No, my real problem is my rule fix to invalid code, then eslint parse the output again, but in the fatal message there is no ruleId, I thought it's missing. As I understand ESLint will merge fixes before the next round of running, so I don't think ESLint can trace which rule cause the broken fix? Context sindresorhus/eslint-plugin-unicorn#1906 (comment) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When use
ESLintclass like thisThe result message missing
ruleId.There was
.defineRuleinLinterclass, how do I give a rule name inESLintclass? Or shouldn't it use id fromfoo.rules?Beta Was this translation helpful? Give feedback.
All reactions