Commits
Click on a commit to change the comparison rangefeat(linter/plugins): support fixes (#14094)
Add support for fixes in JS plugins.
```js
export const noDebuggerRule = {
create(context) {
return {
DebuggerStatement(node) {
return context.report({
message: 'Remove this filth!',
node,
fix(fixer) {
return fixer.remove(node);
},
});
},
};
},
};
```
All of [ESLint's fixer APIs](https://eslint.org/docs/latest/extend/custom-rules#applying-fixes) are supported.
Note: Suggestions are not implemented yet, only fixes.2 months ago
by overlookmotel