Created
November 12, 2021 04:13
-
-
Save edupsousa/a3c01c38185018ec55f21df8cc22d187 to your computer and use it in GitHub Desktop.
Recipe for using a custom eslint@8 config file in the vscode-eslint extension (.vscode_settio
This file contains hidden or 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
| module.exports = { | |
| env: { | |
| browser: true, | |
| es2021: true, | |
| }, | |
| parserOptions: { | |
| sourceType: "module", | |
| }, | |
| rules: { | |
| "no-console": "warn", | |
| "no-multiple-empty-lines": ["warn", { max: 3 }], | |
| }, | |
| }; |
This file contains hidden or 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
| module.exports = { | |
| rules: { | |
| "no-console": "error", | |
| "no-multiple-empty-lines": ["warn", { max: 1 }], | |
| }, | |
| }; |
This file contains hidden or 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
| console.log("Hello World"); | |
| console.log("Bye Bye World"); |
This file contains hidden or 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
| { | |
| "eslint.options": { | |
| "overrideConfigFile": "custom-eslintrc.js" | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
settings.jsonshould be.vscode/settings.json