-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
48 lines (42 loc) · 1.32 KB
/
.eslintrc.js
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
38
39
40
41
42
43
44
45
46
47
48
module.exports = {
extends: [
// @see https://www.npmjs.com/package/eslint-config-airbnb-base
'airbnb-base',
// @see https://github.com/vuejs/eslint-plugin-vue
// @see https://vuejs.github.io/eslint-plugin-vue/rules/
'plugin:vue/recommended'
],
// @see https://eslint.org/docs/user-guide/configuring#specifying-environments
env: {
browser: true
},
// @see https://eslint.org/docs/user-guide/configuring#specifying-parser-options
parserOptions: {
ecmaVersion: 6,
parser: 'babel-eslint',
sourceType: 'module'
},
// @see https://www.npmjs.com/package/eslint-import-resolver-webpack
settings: {
'import/resolver': 'webpack'
},
rules: {
indent: ['error', 4, { 'SwitchCase': 1 }],
'class-methods-use-this': 0,
'no-param-reassign': ['error', {
props: true,
ignorePropertyModificationsFor: [
'state', // for vuex state
'acc', // for reduce accumulators
'e' // for e.returnvalue
]
}],
'vue/html-indent': ["error", 4],
"no-console": 0,
// 'vue/script-indent': ["error", 4, {
// "baseIndent": 1,
// "switchCase": 0,
// "ignores": []
// }]
}
};