Skip to content

Instantly share code, notes, and snippets.

@agcty
Last active December 3, 2018 22:05
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/7591a9ecfab80b7334aecbd221d127d7 to your computer and use it in GitHub Desktop.
Save agcty/7591a9ecfab80b7334aecbd221d127d7 to your computer and use it in GitHub Desktop.
Eslint config for Nuxt and VSCode
"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