Last active
December 3, 2018 22:05
-
-
Save agcty/7591a9ecfab80b7334aecbd221d127d7 to your computer and use it in GitHub Desktop.
Eslint config for Nuxt and VSCode
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
"eslintConfig": { | |
"root": true, | |
"env": { | |
"node": true | |
}, | |
"extends": [ | |
"plugin:vue/recommended", | |
"eslint:recommended", | |
"plugin:prettier/recommended", | |
"prettier/vue" | |
], | |
"rules": { | |
"vue/component-name-in-template-casing": [ | |
"error", | |
"PascalCase", | |
{ | |
"ignores": [ | |
"nuxt", | |
"nuxt-link" | |
] | |
} | |
], | |
"no-console": [ | |
"error", | |
{ | |
"allow": [ | |
"log", | |
"error", | |
"warn" | |
] | |
} | |
] | |
}, | |
"globals": { | |
"$nuxt": true | |
}, | |
"parserOptions": { | |
"parser": "babel-eslint" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment