-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.json
85 lines (83 loc) · 2.31 KB
/
.eslintrc.json
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
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"plugin:vue/vue3-essential",
"standard-with-typescript"
],
"overrides": [],
"parser": "vue-eslint-parser",
"parserOptions": {
"parser": "@typescript-eslint/parser",
"extraFileExtensions": [ ".vue" ],
"ecmaVersion": "latest",
"sourceType": "module",
"project": [
"backend/tsconfig.json",
"frontend/tsconfig.app.json",
"frontend/tsconfig.config.json",
"frontend/tsconfig.cypress-ct.json",
"frontend/cypress/e2e/tsconfig.json",
"component/tsconfig.json",
"component/tsconfig.node.json",
"monaco/tsconfig.json"
]
},
"plugins": [
"vue"
],
"rules": {
"curly": "off",
"no-labels": "off",
"indent": "off",
"space-before-function-paren": "off",
"object-property-newline": "off",
"no-unmodified-loop-condition": "off",
"func-call-spacing": "off",
"operator-linebreak": [ "error", "before" ],
"array-bracket-spacing": [
"error", "always",
{
"objectsInArrays": false,
"arraysInArrays": false
}
],
"space-unary-ops": [
"error",
{
"words": true,
"nonwords": true
}
],
"quote-props": [ "error", "consistent-as-needed" ],
"promise/param-names": [
"error",
{
"resolvePattern": "^_?res(olve)?$",
"rejectPattern": "^_?rej(ect)?$"
}
],
"@typescript-eslint/space-before-function-paren": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/restrict-plus-operands": "off",
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/consistent-type-assertions": "off",
"@typescript-eslint/brace-style": [ "error", "stroustrup" ],
"@typescript-eslint/array-type": [
"error",
{
"default": "array",
"readonly": "array"
}
],
"@typescript-eslint/indent": [ "error", 4 ],
"@typescript-eslint/consistent-type-definitions": [ "error", "type" ],
"@typescript-eslint/consistent-type-imports": "error",
"vue/multi-word-component-names": "off"
}
}