Skip to content

Instantly share code, notes, and snippets.

@orue
Created March 31, 2020 09:47
Show Gist options
  • Save orue/4e61a495336550a9c2ba50847bf0789d to your computer and use it in GitHub Desktop.
Save orue/4e61a495336550a9c2ba50847bf0789d to your computer and use it in GitHub Desktop.
eslint configuration for nuxt,js
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