Last active
March 8, 2019 11:13
-
-
Save abhishekbhardwaj/3d402307ec29274e5e4682787cd0ff89 to your computer and use it in GitHub Desktop.
Setup ESLint + Prettier for Vue.js Development.
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
{ | |
"env": { | |
"browser": true, | |
"commonjs": true, | |
"es6": true | |
}, | |
"extends": [ | |
"eslint:recommended", | |
"airbnb-base", | |
"plugin:vue/recommended", | |
"plugin:prettier/recommended" | |
], | |
"plugins": ["prettier"], | |
"parserOptions": { | |
"sourceType": "module" | |
}, | |
"rules": { | |
"prettier/prettier": [ | |
"error", | |
{ | |
"singleQuote": true | |
} | |
], | |
"quotes": [ | |
2, | |
"single", | |
{ | |
"avoidEscape": true | |
} | |
], | |
"semi": ["error", "always"], | |
"indent": [ | |
"error", | |
4, | |
{ | |
"SwitchCase": 2 | |
} | |
], | |
"linebreak-style": ["error", "unix"] | |
} | |
} |
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
yarn add eslint eslint-config-airbnb-base eslint-config-prettier eslint-plugin-import eslint-plugin-prettier eslint-plugin-vue prettier --dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Setup ESLint + Prettier for Vue.js Development.
.eslintrc
above and also runyarn add eslint eslint-config-airbnb-base eslint-config-prettier eslint-plugin-import eslint-plugin-prettier eslint-plugin-vue prettier --dev
to install dependencies.