forked from MaaAssistantArknights/MaaX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
55 lines (54 loc) · 1.3 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
const path = require("path");
module.exports = {
root: true,
env: {
browser: true,
es2021: true,
node: true,
"vue/setup-compiler-macros": true,
},
parserOptions: {
ecmaVersion: 12,
sourceType: "module",
project: [
path.join(__dirname, "packages/renderer/tsconfig.json"),
path.join(__dirname, "packages/main/tsconfig.json"),
],
},
plugins: ["vue", "@typescript-eslint"],
extends: [
"eslint:recommended",
"plugin:vue/vue3-recommended",
"plugin:vue/vue3-essential",
"standard-with-typescript",
"@vue/eslint-config-typescript",
],
rules: {
"vue/max-len": [
"error",
{
code: 120,
template: 120,
},
],
"no-undef": "off", // 让ts检查undefined
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"vue/multi-word-component-names": "off",
"vue/max-attributes-per-line": [
"error",
{
singleline: {
max: 3,
},
multiline: {
max: 1,
},
},
],
"@typescript-eslint/promise-function-async": "off",
"@typescript-eslint/naming-convention": "off",
"camelcase": "off",
"vue/prop-name-casing": "off"
},
};