Closed issam-seghir closed 4 months ago
This seems to be a limitation of ESLint, you can only use autofix if you have an error. Have you seen something similar in other ESLint rules?
have you seen something similar in other ESLint rules?
Unfortunately no, i used to change "error" to "warning" for plugins such as sort-import
, but this plugin is annoying because it throws errors in every place
Unfortunately, there doesn't seem to be anything I can do to help here. This is the ESLint API.
Describe the bug
Can the auto-fix (sort) feature be enabled when I hit Ctrl+S, but disable the warning messages? Currently, when I disable the warning messages like this:
rules: { "perfectionist/sort-object-types": "off", }
it also disables the auto-fix feature. In summary, I want the code to be sorted automatically when I hit save, without any errors or warning messages because they are not necessary.
Code example
...
ESLint version
8.55.0
ESLint Plugin Perfectionist version
2.5.0
Additional comments
No response
Validations