Created
March 31, 2020 09:47
-
-
Save orue/4e61a495336550a9c2ba50847bf0789d to your computer and use it in GitHub Desktop.
eslint configuration for nuxt,js
This file contains 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
module.exports = { | |
root: true, | |
env: { | |
node: true, | |
browser: true | |
}, | |
extends: [ | |
'plugin:vue/recommended', | |
'eslint:recommended', | |
'prettier/vue', | |
'plugin:prettier/recommended' | |
], | |
rules: { | |
'vue/component-name-in-template-casing': ['error', 'PascalCase'], | |
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', | |
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off' | |
}, | |
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