-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.eslintrc.js
45 lines (45 loc) · 1.03 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
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'eslint:recommended',
'plugin:vue/recommended',
'plugin:prettier/recommended',
// '@vue/airbnb',
],
parserOptions: {
parser: 'babel-eslint',
},
globals: {
AMap: true,
Loca: true,
},
rules: {
'vue/no-unused-components': 1,
'vue/attribute-hyphenation': 2,
'no-console': 0,
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-param-reassign': ['error', { props: false }],
'no-shadow': ['error', { allow: ['state'] }],
'no-underscore-dangle': ['error', { allow: ['_id', '_options'] }],
'object-shorthand': ['error', 'always'],
'no-unused-vars': 1,
'no-unused-expressions': 0,
'func-names': 0,
'max-len': 0,
'global-require': 0,
'import/no-extraneous-dependencies': 0,
// semi: ['error', 'never'],
camelcase: 'off',
},
ignorePatterns: [
'public',
'build',
'dist',
'!.eslintrc.js',
'!.prettierrc.js',
'!.stylelintrc.js',
],
}