@lsby/eslint-config 0.2.21 → 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 -0
- package/dist/esm/index.js +2 -0
- 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": [
|
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": [
|