Skip to content

Instantly share code, notes, and snippets.

@laurenclark
Created February 29, 2020 22:11
Show Gist options
  • Save laurenclark/3343cd6bb0f98d2c72c2fca430aa9962 to your computer and use it in GitHub Desktop.
Save laurenclark/3343cd6bb0f98d2c72c2fca430aa9962 to your computer and use it in GitHub Desktop.
ESLint config for Vue/Nuxt
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/essential',
'plugin:prettier/recommended',
'@vue/prettier'
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
},
parserOptions: {
parser: 'babel-eslint'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment