-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.js
43 lines (41 loc) · 1.03 KB
/
index.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
module.exports = {
extends: [
'eslint:recommended',
'standard',
'plugin:vue/recommended',
],
parserOptions: {
parser: '@babel/eslint-parser',
sourceType: 'module',
},
rules: {
// eslint
'comma-dangle': ['error', 'always-multiline'],
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'no-console': process.env.NODE_ENV === 'production' ? 1 : 0,
'quote-props': ['error', 'as-needed'],
'no-return-assign': 0,
// vue
'vue/require-v-for-key': 0,
// import
'import/no-webpack-loader-syntax': 0,
'import/default': 1,
'import/namespace': ['error', {
allowComputed: true,
}],
'import/no-anonymous-default-export': ['error', {
allowArray: true,
allowArrowFunction: true,
allowAnonymousClass: false,
allowAnonymousFunction: false,
allowLiteral: false,
allowObject: true,
}],
'import/extensions': ['error', 'never', {
js: 'never',
jsx: 'never',
json: 'never',
vue: 'never',
}],
},
}