Last active
April 15, 2020 14:07
-
-
Save benounnas/dd8f2e52cf3d3586dc44e427e0ab3e7b to your computer and use it in GitHub Desktop.
Optimizing your Editor
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 = { | |
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' | |
} | |
} |
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 = { | |
singleQuote: true, | |
semi: false | |
} |
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.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