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.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
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