Skip to content

Instantly share code, notes, and snippets.

@amorfati0310
Last active June 8, 2020 12:35
Show Gist options
  • Save amorfati0310/8d968fbe77f1e72ce66c353144f8e17f to your computer and use it in GitHub Desktop.
Save amorfati0310/8d968fbe77f1e72ce66c353144f8e17f to your computer and use it in GitHub Desktop.
vscode
module.exports = {
root: true,
env: {
node: true
},
extends: ['plugin:vue/essential', 'eslint:recommended', '@vue/prettier'],
parserOptions: {
parser: 'babel-eslint'
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
}
};
{
"editor.formatOnSave": true,
"editor.formatOnType": true,
"eslint.alwaysShowStatus": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"[javascript]": {
"editor.formatOnSave": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment