Created
May 12, 2021 14:59
-
-
Save sathishkumar294/53ce4b706f6df6cddd8e438645d05388 to your computer and use it in GitHub Desktop.
Eslint for Vue development in VS Code
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
Show hidden characters
https://qvault.io/javascript/simple-setup-vue-linting-in-vs-code/ | |
yarn add eslint --dev | |
yarn add eslint-plugin-import --dev | |
yarn add eslint-plugin-node --dev | |
yarn add eslint-plugin-promise --dev | |
yarn add eslint-plugin-standard --dev | |
yarn add eslint-plugin-vue --dev | |
yarn add @vue/eslint-config-standard --dev | |
yarn add babel-eslint --dev | |
{ | |
"files.eol": "\n", | |
"editor.codeActionsOnSave": { | |
"source.fixAll": true | |
}, | |
"eslint.options": { | |
"configFile": ".eslintrc.json" | |
}, | |
"eslint.alwaysShowStatus": true, | |
"eslint.format.enable": true, | |
"eslint.packageManager": "yarn" | |
} | |
{ | |
"root": true, | |
"env": { | |
"node": true, | |
"mocha": true | |
}, | |
"extends": [ | |
"eslint:recommended", | |
"plugin:vue/recommended" | |
], | |
"rules": { | |
"comma-dangle": "error", | |
"quotes": [ | |
"error", | |
"single" | |
], | |
"linebreak-style": [ | |
"error", | |
"unix" | |
], | |
"array-bracket-spacing": [ | |
"error", | |
"always" | |
], | |
"semi": [ | |
"error", | |
"always" | |
], | |
"eol-last": [ | |
"error", | |
"always" | |
], | |
"indent": [ | |
"error", | |
2 | |
] | |
}, | |
"parserOptions": { | |
"parser": "babel-eslint", | |
"sourceType": "module", | |
"allowImportExportEverywhere": true, | |
"ecmaVersion": 2019 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment