@lsby/eslint-config 0.2.6 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +7 -3
- package/dist/esm/index.js +7 -3
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
@@ -72,14 +72,18 @@ var ts\u5B89\u5168\u6027 = {
|
|
72
72
|
// 必须标注函数返回类型
|
73
73
|
"@typescript-eslint/explicit-function-return-type": ["error", {}],
|
74
74
|
// 检查没有使用的变量
|
75
|
+
"no-unused-vars": "off",
|
75
76
|
"@typescript-eslint/no-unused-vars": [
|
76
77
|
"warn",
|
77
78
|
{
|
78
|
-
varsIgnorePattern: "^_",
|
79
79
|
argsIgnorePattern: "^_",
|
80
|
-
|
80
|
+
caughtErrorsIgnorePattern: "^_",
|
81
|
+
destructuredArrayIgnorePattern: "^_",
|
82
|
+
varsIgnorePattern: "^_"
|
81
83
|
}
|
82
|
-
]
|
84
|
+
],
|
85
|
+
// 禁止非空断言运算符
|
86
|
+
"@typescript-eslint/no-non-null-assertion": "error"
|
83
87
|
}
|
84
88
|
};
|
85
89
|
var jsDoc\u5B89\u5168\u6027 = {
|
package/dist/esm/index.js
CHANGED
@@ -30,14 +30,18 @@ var ts\u5B89\u5168\u6027 = {
|
|
30
30
|
// 必须标注函数返回类型
|
31
31
|
"@typescript-eslint/explicit-function-return-type": ["error", {}],
|
32
32
|
// 检查没有使用的变量
|
33
|
+
"no-unused-vars": "off",
|
33
34
|
"@typescript-eslint/no-unused-vars": [
|
34
35
|
"warn",
|
35
36
|
{
|
36
|
-
varsIgnorePattern: "^_",
|
37
37
|
argsIgnorePattern: "^_",
|
38
|
-
|
38
|
+
caughtErrorsIgnorePattern: "^_",
|
39
|
+
destructuredArrayIgnorePattern: "^_",
|
40
|
+
varsIgnorePattern: "^_"
|
39
41
|
}
|
40
|
-
]
|
42
|
+
],
|
43
|
+
// 禁止非空断言运算符
|
44
|
+
"@typescript-eslint/no-non-null-assertion": "error"
|
41
45
|
}
|
42
46
|
};
|
43
47
|
var jsDoc\u5B89\u5168\u6027 = {
|