Skip to content

Instantly share code, notes, and snippets.

@VlnRbn
Created March 11, 2020 06:04
Show Gist options
  • Save VlnRbn/bdf4a69799c07d301dad27a6ca06642b to your computer and use it in GitHub Desktop.
Save VlnRbn/bdf4a69799c07d301dad27a6ca06642b to your computer and use it in GitHub Desktop.
Cool VSCode prettier and eslint config
module.exports = {
root: true,
env: {
node: true
},
extends: [
"plugin:vue/essential",
"eslint:recommended",
"@vue/typescript/recommended", //only for vue
"@vue/prettier", //only for vue
"@vue/prettier/@typescript-eslint" //only for vue
],
parserOptions: {
ecmaVersion: 2020
},
rules: {
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off"
},
overrides: [
{
files: [
"**/__tests__/*.{j,t}s?(x)",
"**/tests/unit/**/*.spec.{j,t}s?(x)"
],
env: {
jest: true
}
}
]
};
module.exports = {
trailingComma: 'es5',
tabWidth: 2,
semi: false,
singleQuote: true,
jsxBracketSameLine: false,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment