eslint autofix problems
Hello, i started using
@sapphire/eslint-config
for my project.
Now i would like to solve these problems.
The most erros is because explicit member accessibility.
Autofix doesnt work here. Is that a configuration problem?
i hope this problem fits into this forum.![No description](https://cdn.answeroverflow.com/1234117243399311411/image.png)
Solution:Jump to solution
no, eslint rules are autofixable only if they provide auto fix functions. These rules simply do not. That's also nothing to do with the config, the config just enables/disables rules. Those rules are provided by the @typescript-eslint/eslint-plugin package (the official eslint plugin for linting typescript files).
Notably you can see which rules have auto fixers here for the eslint base and here for @typescript-eslint...
3 Replies
i need to add public accessibility
![No description](https://cdn.answeroverflow.com/1234117586485116990/image.png)
Solution
no, eslint rules are autofixable only if they provide auto fix functions. These rules simply do not. That's also nothing to do with the config, the config just enables/disables rules. Those rules are provided by the @typescript-eslint/eslint-plugin package (the official eslint plugin for linting typescript files).
Notably you can see which rules have auto fixers here for the eslint base and here for @typescript-eslint
ahh okay