eslint-plugin-eslint-plugin
eslint-plugin-eslint-plugin copied to clipboard
An ESLint plugin for linting ESLint plugins
When there's a spread inside the meta object that we can't evaluate, we might want to stop flagging these violations since likely the spread fills these properties in already: ```...
Related of #272 but distinct and might be a bit easier to fix since we just need to evaluate the spread. ```js const fixOrSuggest: { fix: TSESLint.ReportFixFunction | null; suggest:...
Some of our rules need to be able to detect when suggestions are reported. I found a situation where we fail to unwrap the suggestions: https://github.com/typescript-eslint/typescript-eslint/blob/ad412cdd74dc5619fbe4bf27c0a5eb5c5a4b65ca/packages/eslint-plugin/src/rules/no-empty-interface.ts#L86 ```js context.report({ node: node.id,...
Starting a list of my desired breaking changes, feedback welcome. We can perform this release once we have compiled enough changes. We should watch out for any breaking changes needed...
This will enable the helper to properly resolve object key names that use variables like: ```js const FOO = 'some-property-name'; const obj = { [FOO] = 'hello world' } ```...
```bash > eslint . --ignore-pattern "!.*" /home/weiran/repo/eslint-plugin-eslint-plugin/docs/rules/consistent-output.md 16:1 warning '/*eslint*/' has no effect because you have 'noInlineConfig' setting in your config (.eslintrc.js#overrides[3]) 37:1 warning '/*eslint*/' has no effect because you...
If there is a folder that contains a rule index JS file and other util modules the pattern will require a wrong documentation Let's say I have a rule in...
If all test cases specify the same `parserOptions`, then `parserOptions` should be set globally in the test file when creating the `RuleTester` to simplify the individual test cases. Before: ```...
When writing ESLint rule tests using [RuleTester](https://eslint.org/docs/developer-guide/nodejs-api#ruletester), it can be beneficial to enforce consistent usage of the `errors` property in this RuleTester docs screenshot:  For example, I usually always...
if a rule has a very large number of test cases, it would be fine to reorder them based on `options`. this rule can enforce code like this to improve...