-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.eslintrc.cjs
52 lines (51 loc) · 1.43 KB
/
.eslintrc.cjs
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
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')
module.exports = {
root: true,
extends: [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-typescript',
'@vue/eslint-config-prettier/skip-formatting'
],
parserOptions: {
ecmaVersion: 'latest'
},
rules: {
'@typescript-eslint/type-annotation-spacing': 'error',
'arrow-parens': ['error', 'always'],
'arrow-spacing': ['error', {
'before': true, 'after': true
}],
'comma-spacing': ['error', {
'before': false, 'after': true
}],
'block-spacing': ['error', 'always'],
'default-case': 'error',
'default-case-last': 'error',
'default-param-last': 'error',
'eqeqeq': 'error',
'func-call-spacing': ['error', 'never'],
'indent': [ 'error', 2, {
'SwitchCase': 1
} ],
'keyword-spacing': ['error', {
'after': true, 'before': true,
}],
// 'no-trailing-spaces': 'error',
'no-unreachable': 'error',
'no-unreachable-loop': 'error',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'no-var': 'error',
'object-curly-spacing': ['error', 'always'],
'quotes': [ 'error', 'single' ],
'semi': [ 'error', 'never' ],
'space-infix-ops': 'error',
'switch-colon-spacing': ['error', {
'after': true, 'before': false
}],
'vue/multi-word-component-names': 'off',
'yoda': 'error',
}
}