Created
April 29, 2019 18:44
-
-
Save agcty/84933c2476b16cb3a756239f8b657a92 to your computer and use it in GitHub Desktop.
Sample .eslintrc with 4 spaces rule
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
{ | |
"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