Skip to content

Instantly share code, notes, and snippets.

@benounnas
Last active April 15, 2020 14:07
Show Gist options
  • Save benounnas/dd8f2e52cf3d3586dc44e427e0ab3e7b to your computer and use it in GitHub Desktop.
Save benounnas/dd8f2e52cf3d3586dc44e427e0ab3e7b to your computer and use it in GitHub Desktop.
Optimizing your Editor
module.exports = {
root: true,
env: {
node: true
},
'extends': [
'plugin:vue/essential',
'plugin:prettier/recommended', // we added this line
'@vue/prettier'
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
},
parserOptions: {
parser: 'babel-eslint'
}
}
module.exports = {
singleQuote: true,
semi: false
}
"eslint.validate": [
{
"language": "vue",
"autoFix": true
},
{
"language": "html",
"autoFix": true
},
{
"language": "javascript",
"autoFix": true
}
],
"eslint.autoFixOnSave": true,
"editor.formatOnSave": true,
vetur.completion.useScaffoldSnippets:false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment