@lsby/eslint-config 0.2.16 → 0.2.17
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 +10 -1
- package/dist/esm/index.js +10 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
@@ -101,7 +101,16 @@ var ts\u5B89\u5168\u6027 = {
|
|
101
101
|
// 只要我们注意JSON上的转换, 就没有问题
|
102
102
|
// '@lsby/no-null': 'error',
|
103
103
|
// 禁止使用undefined
|
104
|
-
"no-undefined": "error"
|
104
|
+
"no-undefined": "error",
|
105
|
+
// 条件里必须明确写布尔值, 以避免if('')被理解为假的情况
|
106
|
+
"@typescript-eslint/strict-boolean-expressions": [
|
107
|
+
"error",
|
108
|
+
{
|
109
|
+
allowString: false,
|
110
|
+
allowNumber: false,
|
111
|
+
allowNullableObject: false
|
112
|
+
}
|
113
|
+
]
|
105
114
|
}
|
106
115
|
};
|
107
116
|
var jsDoc\u5B89\u5168\u6027 = {
|
package/dist/esm/index.js
CHANGED
@@ -59,7 +59,16 @@ var ts\u5B89\u5168\u6027 = {
|
|
59
59
|
// 只要我们注意JSON上的转换, 就没有问题
|
60
60
|
// '@lsby/no-null': 'error',
|
61
61
|
// 禁止使用undefined
|
62
|
-
"no-undefined": "error"
|
62
|
+
"no-undefined": "error",
|
63
|
+
// 条件里必须明确写布尔值, 以避免if('')被理解为假的情况
|
64
|
+
"@typescript-eslint/strict-boolean-expressions": [
|
65
|
+
"error",
|
66
|
+
{
|
67
|
+
allowString: false,
|
68
|
+
allowNumber: false,
|
69
|
+
allowNullableObject: false
|
70
|
+
}
|
71
|
+
]
|
63
72
|
}
|
64
73
|
};
|
65
74
|
var jsDoc\u5B89\u5168\u6027 = {
|