-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
79 lines (79 loc) · 2.45 KB
/
.eslintrc
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
{
"root": true,
"env": {
"node": true
},
"globals": {
"NodeJS": true
},
"parserOptions": {
"ecmaVersion": 12,
"parser": "@typescript-eslint/parser",
"sourceType": "module"
},
"ignorePatterns": ["node_modules/**", "src/library/**", "script/**", "dist/**", "public/**"],
"extends": [
"eslint:recommended",
"plugin:vue/essential",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"
],
"rules": {
"comma-style": "warn",
"comma-spacing": "warn",
"comma-dangle": ["warn", "only-multiline"],
"spaced-comment": "warn",
"indent": ["warn", 2, { "SwitchCase": 1 }],
"semi": ["warn", "always"],
"eqeqeq": ["warn", "always"],
"quotes": ["warn", "double"],
"func-names": ["warn"],
"quote-props": ["warn", "consistent"],
"keyword-spacing": ["warn", { "before": true }],
"no-plusplus": ["warn", { "allowForLoopAfterthoughts": true }],
"no-mixed-spaces-and-tabs": ["warn"],
"no-trailing-spaces": ["warn", { "skipBlankLines": true }],
"no-restricted-syntax": ["warn", "WithStatement", "BinaryExpression[operator='in']"],
"no-unused-expressions": ["warn", { "allowShortCircuit": true, "allowTernary": true }],
"operator-linebreak": ["warn", "after", { "overrides": { "?": "before", ":": "before" } }],
"space-before-function-paren": ["warn", { "anonymous": "never", "named": "never", "asyncArrow": "always" }],
"no-console": ["warn", { "allow": ["info", "warn", "error"] }],
"no-unused-vars": "off",
"no-param-reassign": ["warn", { "props": false }],
"vue/script-indent": ["warn", 2, { "baseIndent": 0 }],
"vue/experimental-script-setup-vars": "off",
"import/extensions": "off",
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off"
},
"settings": {
"import/external-module-folders": ["node_modules"],
"import/resolver": {
"node": {
"extensions": [".js", ".ts"],
"moduleDirectory": ["node_modules", "src/"]
},
"alias": {
"map": [
["@", "./src"],
["&", "./public"],
["monaco-editor", "monaco-editor/esm/vs/editor/editor.api"]
],
"extensions": [".js", ".ts", ".vue"]
}
},
"import/parsers": {
"@typescript-eslint/parser": [".js", ".ts"],
"project": "./tsconfig.json"
}
},
"overrides": [
{
"files": ["*.vue"],
"rules": {
"indent": 0
}
}
]
}