Skip to content

Instantly share code, notes, and snippets.

@stevenslack
Last active December 16, 2021 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevenslack/8379a6a4fca80083ada207d4019ed7c2 to your computer and use it in GitHub Desktop.
Save stevenslack/8379a6a4fca80083ada207d4019ed7c2 to your computer and use it in GitHub Desktop.
Helpful settings for ESLint in VS Code
{
"[javascript]": {
"editor.rulers": [
100
],
},
"[javascriptreact]": {
"editor.rulers": [
100
],
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
},
"eslint.format.enable": true,
"eslint.validate": ["javascript", "javascriptreact", "jsx"],
}
@stevenslack
Copy link
Author

Notes:

  • An editor ruler (editor.rulers) creates a visual reference for ESLints max-len rule.
  • editor.codeActionsOnSave with the "source.fixAll.eslint": true, value allows the editor to apply all ESLint fixes on save.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment