@lsby/eslint-config 0.2.20 → 0.2.22
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 +2 -2
- package/dist/esm/index.js +2 -2
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
@@ -73,6 +73,8 @@ var ts\u5B89\u5168\u6027 = {
|
|
73
73
|
"@typescript-eslint/no-floating-promises": "error",
|
74
74
|
// 必须标注函数返回类型
|
75
75
|
"@typescript-eslint/explicit-function-return-type": ["error", {}],
|
76
|
+
// 必须为类的属性和方法显式写访问修饰符
|
77
|
+
"@typescript-eslint/explicit-member-accessibility": ["error", { accessibility: "explicit" }],
|
76
78
|
// 检查没有使用的变量
|
77
79
|
"no-unused-vars": "off",
|
78
80
|
"@typescript-eslint/no-unused-vars": [
|
@@ -102,8 +104,6 @@ var ts\u5B89\u5168\u6027 = {
|
|
102
104
|
// '@lsby/no-null': 'error',
|
103
105
|
// 禁止使用undefined
|
104
106
|
"no-undefined": "error",
|
105
|
-
// 避免使用对象的索引判断null, 因为索引越界时实际值的undefined
|
106
|
-
"@lsby/require-has-check": "error",
|
107
107
|
// 条件里必须明确写布尔值, 以避免if('')被理解为假的情况
|
108
108
|
"@typescript-eslint/strict-boolean-expressions": [
|
109
109
|
"error",
|
package/dist/esm/index.js
CHANGED
@@ -31,6 +31,8 @@ var ts\u5B89\u5168\u6027 = {
|
|
31
31
|
"@typescript-eslint/no-floating-promises": "error",
|
32
32
|
// 必须标注函数返回类型
|
33
33
|
"@typescript-eslint/explicit-function-return-type": ["error", {}],
|
34
|
+
// 必须为类的属性和方法显式写访问修饰符
|
35
|
+
"@typescript-eslint/explicit-member-accessibility": ["error", { accessibility: "explicit" }],
|
34
36
|
// 检查没有使用的变量
|
35
37
|
"no-unused-vars": "off",
|
36
38
|
"@typescript-eslint/no-unused-vars": [
|
@@ -60,8 +62,6 @@ var ts\u5B89\u5168\u6027 = {
|
|
60
62
|
// '@lsby/no-null': 'error',
|
61
63
|
// 禁止使用undefined
|
62
64
|
"no-undefined": "error",
|
63
|
-
// 避免使用对象的索引判断null, 因为索引越界时实际值的undefined
|
64
|
-
"@lsby/require-has-check": "error",
|
65
65
|
// 条件里必须明确写布尔值, 以避免if('')被理解为假的情况
|
66
66
|
"@typescript-eslint/strict-boolean-expressions": [
|
67
67
|
"error",
|