Created
December 3, 2017 12:27
-
-
Save ChangJoo-Park/0d19afe8bcaeee3ed2aeb48ad81ab1ac to your computer and use it in GitHub Desktop.
Vue.js webpack template's eslintrc
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
// https://eslint.org/docs/user-guide/configuring | |
module.exports = { | |
root: true, | |
parser: 'babel-eslint', | |
parserOptions: { | |
sourceType: 'module' | |
}, | |
env: { | |
browser: true, | |
}, | |
// https://github.com/standard/standard/blob/master/docs/RULES-en.md | |
extends: 'standard', | |
// required to lint *.vue files | |
plugins: [ | |
'html' | |
], | |
// add your custom rules here | |
rules: { | |
// allow async-await | |
'generator-star-spacing': 'off', | |
// allow debugger during development | |
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off' | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment