Last active
July 25, 2021 23:02
-
-
Save jwhulette/ba739b44d1604d786ffeb109d73ad395 to your computer and use it in GitHub Desktop.
[Vue VSCode setup] #vscode #vuejs
This file contains 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: { | |
browser: true, | |
}, | |
parserOptions: { | |
parser: 'babel-eslint', | |
sourceType: 'module', | |
}, | |
extends: [ | |
'airbnb-base', | |
'plugin:vue/recommended', | |
'prettier/vue', | |
'plugin:prettier/recommended' | |
], | |
rules: { | |
'comma-dangle': 'off', | |
'class-methods-use-this': 'off', | |
'import/no-unresolved': 'off', | |
'import/extensions': 'off', | |
'implicit-arrow-linebreak': 'off', | |
'import/prefer-default-export': 'off', | |
"vue/component-name-in-template-casing": ["error", "kebab-case", { | |
"ignores": [] | |
}], | |
'prettier/prettier': ['error', { 'singleQuote': true, 'endOfLine': 'auto' }] | |
}, | |
}; |
This file contains 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
npm install -D eslint prettier babel-eslint eslint-config-airbnb-base eslint-plugin-import eslint-config-prettier eslint-plugin-prettier eslint-plugin-vue |
This file contains 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": [ | |
"vue", | |
"javascript", | |
"javascriptreact" | |
], | |
"editor.codeActionsOnSave": { | |
"source.fixAll.eslint": true | |
}, | |
"vetur.validation.template": false, | |
"editor.formatOnPaste": true, | |
"editor.formatOnType": true, | |
"editor.formatOnSave": false, | |
"files.eol": "\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment