update
Former-commit-id: c4262568ff52062dc118aba4d0d1be64c084aef4 [formerly a3f6851f480a274d0bc82816cf58a1acda6566c5] [formerly e0786e7fe9142d080c850eddf8dcee3bdb03b972 [formerly 6036f2ef5eddea61aa30e55a6c2f8b34a4c1e789]] Former-commit-id: 239dfe9ec88a13c07aa43f3e009fcac2feb5bf97 [formerly 10a7a77ba48f5674e6b5ee2f6515e7ee800fafe2] Former-commit-id: b15137471be011e5278eb4f098cfebb3be176789
This commit is contained in:
27
.eslintrc.js
Normal file
27
.eslintrc.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// http://eslint.org/docs/user-guide/configuring
|
||||
|
||||
module.exports = {
|
||||
root: true,
|
||||
parser: 'babel-eslint',
|
||||
parserOptions: {
|
||||
sourceType: 'module'
|
||||
},
|
||||
env: {
|
||||
browser: true,
|
||||
},
|
||||
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
|
||||
extends: 'standard',
|
||||
// required to lint *.vue files
|
||||
plugins: [
|
||||
'html'
|
||||
],
|
||||
// add your custom rules here
|
||||
'rules': {
|
||||
// allow paren-less arrow functions
|
||||
'arrow-parens': 0,
|
||||
// allow async-await
|
||||
'generator-star-spacing': 0,
|
||||
// allow debugger during development
|
||||
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user