Skip to content

Instantly share code, notes, and snippets.

@abhishekbhardwaj
Last active March 8, 2019 11:13
Show Gist options
  • Save abhishekbhardwaj/3d402307ec29274e5e4682787cd0ff89 to your computer and use it in GitHub Desktop.
Save abhishekbhardwaj/3d402307ec29274e5e4682787cd0ff89 to your computer and use it in GitHub Desktop.
Setup ESLint + Prettier for Vue.js Development.
{
"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"]
}
}
yarn add eslint eslint-config-airbnb-base eslint-config-prettier eslint-plugin-import eslint-plugin-prettier eslint-plugin-vue prettier --dev
@abhishekbhardwaj
Copy link
Author

Setup ESLint + Prettier for Vue.js Development.

.eslintrc above and also run yarn add eslint eslint-config-airbnb-base eslint-config-prettier eslint-plugin-import eslint-plugin-prettier eslint-plugin-vue prettier --dev to install dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment