Last active
December 16, 2021 15:16
-
-
Save stevenslack/8379a6a4fca80083ada207d4019ed7c2 to your computer and use it in GitHub Desktop.
Helpful settings for ESLint in VS Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"[javascript]": { | |
"editor.rulers": [ | |
100 | |
], | |
}, | |
"[javascriptreact]": { | |
"editor.rulers": [ | |
100 | |
], | |
}, | |
"editor.codeActionsOnSave": { | |
"source.fixAll.eslint": true, | |
}, | |
"eslint.format.enable": true, | |
"eslint.validate": ["javascript", "javascriptreact", "jsx"], | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Notes:
editor.rulers
) creates a visual reference for ESLintsmax-len
rule.editor.codeActionsOnSave
with the"source.fixAll.eslint": true,
value allows the editor to apply all ESLint fixes on save.