Created
February 29, 2020 22:11
-
-
Save laurenclark/3343cd6bb0f98d2c72c2fca430aa9962 to your computer and use it in GitHub Desktop.
ESLint config for Vue/Nuxt
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
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