Skip to content

Instantly share code, notes, and snippets.

@agcty
Created April 29, 2019 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agcty/84933c2476b16cb3a756239f8b657a92 to your computer and use it in GitHub Desktop.
Save agcty/84933c2476b16cb3a756239f8b657a92 to your computer and use it in GitHub Desktop.
Sample .eslintrc with 4 spaces rule
{
"root": true,
"env": {
"node": true,
"jest": true
},
"extends": [
"plugin:vue/recommended",
"eslint:recommended",
"prettier/vue",
"plugin:prettier/recommended"
],
"rules": {
"vue/component-name-in-template-casing": [
"error",
"PascalCase",
{
"ignores": ["nuxt", "nuxt-link"]
}
],
"no-console": [
"error",
{
"allow": ["log", "error", "warn", "info"]
}
],
"prettier/prettier": [
"error",
{
"tabWidth": 4
}
]
},
"globals": {
"$nuxt": true,
"$i18n": true
},
"parserOptions": {
"parser": "babel-eslint"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment