This repository has been archived by the owner on Mar 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
.eslintrc.js
159 lines (159 loc) · 3.71 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
module.exports = {
parser: 'vue-eslint-parser',
parserOptions: {
ecmaVersion: 9,
sourceType: 'module',
ecmaFeatures: {
impliedStrict: true,
experimentalObjectRestSpread: true
}
},
root: true,
globals: {
document: true,
navigator: true,
window: true,
apiBaseURL: true
},
env: {
browser: true,
amd: true,
node: true,
es6: true
},
plugins: [
'vue',
'filenames'
],
extends: ['plugin:vue/recommended'],
rules: {
'no-console': 1,
'no-constant-condition': 2,
'no-dupe-args': 2,
'no-dupe-keys': 2,
'no-duplicate-case': 2,
'no-empty-character-class': 2,
'no-empty': 2,
'no-ex-assign': 2,
'no-extra-semi': 2,
'no-func-assign': 2,
'no-invalid-regexp': 2,
'no-irregular-whitespace': 1,
'no-regex-spaces': 2,
'no-sparse-arrays': 2,
'no-unexpected-multiline': 1,
'no-unreachable': 2,
'no-unsafe-finally': 2,
'no-unsafe-negation': 2,
'use-isnan': 1,
'valid-jsdoc': 0,
'valid-typeof': 2,
'array-callback-return': 1,
'block-scoped-var': 1,
'dot-notation': 2,
'eqeqeq': [2, 'smart'],
'no-alert': 2,
'no-case-declarations': 2,
'no-empty-function': 1,
'no-empty-pattern': 2,
'no-eq-null': 0,
'no-eval': 2,
'no-extra-bind': 2,
'no-floating-decimal': 2,
'no-global-assign': 2,
'no-implied-eval': 2,
'no-invalid-this': 1,
'no-iterator': 2,
'no-labels': 2,
'no-lone-blocks': 2,
'no-loop-func': 2,
'no-multi-spaces': 1,
'no-redeclare': 2,
'no-return-assign': 1,
'no-self-assign': 1,
'no-self-compare': 1,
'no-throw-literal': 2,
'no-unused-expressions': 2,
'no-useless-call': 2,
'no-useless-concat': 1,
'no-useless-escape': 2,
'no-useless-return': 2,
'no-void': 2,
'no-with': 2,
'radix': [2, 'as-needed'],
'require-await': 2,
'yoda': 1,
'no-catch-shadow': 2,
'no-delete-var': 2,
'no-shadow-restricted-names': 2,
'no-undef': 0,
'no-unused-vars': 2,
'no-use-before-define': 2,
'handle-callback-err': 1,
'block-spacing': [1, 'always'],
'brace-style': [1, 'stroustrup', { allowSingleLine: true }],
'camelcase': 1,
'comma-dangle': ['error', {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "never",
"exports": "never",
"functions": "ignore"
}],
'comma-spacing': 1,
'comma-style': 1,
'computed-property-spacing': 1,
'func-call-spacing': 1,
'func-style': [1, 'declaration', { allowArrowFunctions: true }],
'indent': 0,
'key-spacing': 1,
'new-cap': 0,
'new-parens': 2,
'no-mixed-spaces-and-tabs': 2,
'no-trailing-spaces': 2,
'no-unneeded-ternary': 1,
'no-whitespace-before-property': 1,
'object-curly-spacing': [1, 'always', { arraysInObjects: false }],
'one-var-declaration-per-line': 1,
'operator-assignment': 1,
'quote-props': [2, 'as-needed'],
'quotes': [1, 'single', { allowTemplateLiterals: true }],
'semi-spacing': 1,
'semi': 2,
'space-before-blocks': 1,
'space-before-function-paren': [1, {
anonymous: 'never',
named: 'never',
asyncArrow: 'always'
}],
'space-in-parens': [1, 'never'],
'space-infix-ops': 1,
'space-unary-ops': [1, { words: true, nonwords: false }],
'spaced-comment': 1,
'arrow-spacing': 1,
'no-class-assign': 2,
'no-const-assign': 2,
'no-dupe-class-members': 2,
'no-duplicate-imports': 2,
'no-new-symbol': 2,
'no-useless-computed-key': 2,
'no-useless-constructor': 2,
'no-useless-rename': 2,
'object-shorthand': 1,
'prefer-arrow-callback': 1,
'require-yield': 2,
'template-curly-spacing': 1,
'vue/component-name-in-template-casing': [1, 'kebab-case'],
'vue/script-indent': [1, 'tab', { baseIndent: 1 }],
'vue/require-default-prop': 0,
'filenames/match-regex': [2, /^([a-z0-9]+[\-\.])*[a-z0-9]+$/, true]
},
overrides: [
{
files: ['*.vue'],
rules: {
indent: 0,
}
},
]
};