Skip to content

Instantly share code, notes, and snippets.

@edupsousa
Created November 12, 2021 04:13
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 edupsousa/a3c01c38185018ec55f21df8cc22d187 to your computer and use it in GitHub Desktop.
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
module.exports = {
env: {
browser: true,
es2021: true,
},
parserOptions: {
sourceType: "module",
},
rules: {
"no-console": "warn",
"no-multiple-empty-lines": ["warn", { max: 3 }],
},
};
module.exports = {
rules: {
"no-console": "error",
"no-multiple-empty-lines": ["warn", { max: 1 }],
},
};
console.log("Hello World");
console.log("Bye Bye World");
{
"eslint.options": {
"overrideConfigFile": "custom-eslintrc.js"
}
}
@edupsousa
Copy link
Author

edupsousa commented Nov 12, 2021

settings.json should be .vscode/settings.json

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