-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
97 lines (97 loc) · 2.4 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
module.exports = {
root: true,
extends: ["airbnb-base", "plugin:vue/base"],
parser: "vue-eslint-parser",
parserOptions: {
parser: "@babel/eslint-parser",
sourceType: "module",
},
plugins: ["vue"],
settings: {
"html/indent": "+2",
"html/report-bad-indent": "error",
},
env: {
browser: true,
node: true,
es6: true,
},
rules: {
"vue/script-indent": ["error"],
"vue/multi-word-component-names": "off",
"vue/script-setup-uses-vars": "error",
"vue/html-indent": ["error"],
"vue/html-end-tags": ["error"],
"vue/first-attribute-linebreak": ["error"],
"vue/html-closing-bracket-newline": ["error"],
"vue/no-v-html": "off",
"vue/max-attributes-per-line": [
"error",
{
singleline: {
max: 1,
},
multiline: {
max: 1,
},
}
],
"no-multiple-empty-lines": [
"error",
{
max: 1,
maxBOF: 1,
}
],
"comma-dangle": [
1,
{
objects: "always",
arrays: "ignore",
imports: "ignore",
exports: "ignore",
functions: "ignore",
}
],
"no-lonely-if": 0,
"max-len": "off",
quotes: ["error", "double"],
"no-restricted-syntax": 0,
"o-absolute-path": 0,
"no-new": 0,
"no-console": 0,
"no-bitwise": 0,
"no-useless-escape": 0,
"no-underscore-dangle": 0,
"global-require": 0,
"import/no-unresolved": 0,
"no-param-reassign": 0,
"no-shadow": 0,
"valid-jsdoc": [
"error",
{
requireReturn: true,
requireReturnType: true,
requireParamDescription: true,
requireReturnDescription: true,
}
],
"import/extensions": 0,
"require-jsdoc": "off",
"class-methods-use-this": 0,
semi: ["error", "always"],
"import/no-named-as-default": "off",
"object-curly-spacing": ["error"],
"comma-spacing": ["error", { before: false, after: true, }],
"space-in-parens": ["error", "never"],
"array-bracket-spacing": ["error", "never"],
"computed-property-spacing": ["error", "never"],
"func-call-spacing": ["error", "never"],
"space-before-function-paren": ["error", "never"],
"keyword-spacing": ["error", { after: true, }],
"space-before-blocks": ["error"],
"no-whitespace-before-property": ["error"],
"no-trailing-spaces": 2,
indent: ["error", 2, { SwitchCase: 1, }],
},
};