forked from tianyong90/we-vue
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
37 lines (36 loc) · 906 Bytes
/
.eslintrc.js
File metadata and controls
37 lines (36 loc) · 906 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// https://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint',
ecmaVersion: 6,
sourceType: 'module'
},
env: {
es6: true,
node: true,
mocha: true
},
extends: [
'standard',
'plugin:vue/strongly-recommended'
],
// 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',
'no-unused-vars': process.env.NODE_ENV === 'production' ? 'error' : 'off',
"vue/require-default-prop": 'off',
"vue/no-unused-vars": 'off',
"vue/name-property-casing": ['error', 'kebab-case'],
'vue/max-attributes-per-line': ['error', {
"singleline": 5,
"multiline": {
"max": 1,
"allowFirstLine": false
}
}]
}
}