-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
88 lines (88 loc) · 2.11 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
module.exports = {
env: {
browser: true,
node: true,
commonjs: true,
es2021: true
},
extends: [
'plugin:vue/essential',
'eslint:recommended',
'standard'
],
root: true,
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
ecmaFeatures: {
impliedStrict: true,
experimentalObjectRestSpread: true
}
},
plugins: [
'html', 'vue'
],
rules: {
indent: 0,
semi: [2, 'always'],
'space-before-function-paren': 0,
'object-property-newline': 0,
'array-bracket-spacing': 2,
'arrow-body-style': 2,
'callback-return': 0,
'comma-spacing': 2,
'func-names': 0,
'init-declarations': 2,
'key-spacing': 2,
'max-len': 0,
'max-statements': 0,
'no-multiple-empty-lines': 2,
'no-negated-condition': 0,
'no-shadow': 0,
'no-var': 0,
'object-shorthand': 0,
'operator-assignment': 2,
'prefer-arrow-callback': 2,
'prefer-const': 0,
'prefer-destructuring': 0,
'prefer-template': 0,
'require-jsdoc': 0,
'array-callback-return': 2,
'consistent-return': 2,
'dot-notation': 0,
'no-else-return': 0,
'no-empty-function': 0,
'no-eq-null': 2,
'no-invalid-this': 0,
'no-param-reassign': 0,
'no-self-compare': 2,
'vars-on-top': 0,
'no-prototype-builtins': 0,
'valid-jsdoc': 0,
camelcase: 2,
eqeqeq: 2,
curly: 2,
quotes: [2, 'single'],
'space-infix-ops': 2,
'comma-dangle': 1,
'no-undef': 1,
'global-strict': 0,
'no-extra-semi': 1,
'no-underscore-dangle': 0,
'no-unused-vars': 1,
'no-trailing-spaces': [1, { 'skipBlankLines': true }],
'no-unreachable': 1,
'no-alert': 0,
'brace-style': [2, '1tbs'],
'block-scoped-var': 2,
'generator-star-spacing': 0,
'no-extra-parens': 2,
'no-cond-assign': [2, 'always'],
'linebreak-style': [2, 'unix'],
'eol-last': 2,
'padded-blocks': [2, 'never'],
'object-curly-spacing': [2, 'always', { objectsInObjects: false }],
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'no-console': process.env.NODE_ENV === 'production' ? 2 : 0
}
};