@rebeccastevens/eslint-config 1.7.5 → 1.7.7
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/modern.cjs +26 -0
- package/dist/modern.mjs +26 -0
- package/dist/typescript.cjs +6 -1
- package/dist/typescript.mjs +6 -1
- package/package.json +1 -1
package/dist/modern.cjs
CHANGED
|
@@ -1083,6 +1083,32 @@ const settings$4 = {
|
|
|
1083
1083
|
"n/no-new-require": "error",
|
|
1084
1084
|
"n/no-path-concat": "error",
|
|
1085
1085
|
"n/no-process-exit": "error",
|
|
1086
|
+
"n/no-restricted-import": [
|
|
1087
|
+
"error",
|
|
1088
|
+
[
|
|
1089
|
+
{
|
|
1090
|
+
name: "assert",
|
|
1091
|
+
message: "Please use assert/strict instead.",
|
|
1092
|
+
},
|
|
1093
|
+
{
|
|
1094
|
+
name: "node:assert",
|
|
1095
|
+
message: "Please use node:assert/strict instead.",
|
|
1096
|
+
},
|
|
1097
|
+
],
|
|
1098
|
+
],
|
|
1099
|
+
"n/no-restricted-require": [
|
|
1100
|
+
"error",
|
|
1101
|
+
[
|
|
1102
|
+
{
|
|
1103
|
+
name: "assert",
|
|
1104
|
+
message: "Please use assert/strict instead.",
|
|
1105
|
+
},
|
|
1106
|
+
{
|
|
1107
|
+
name: "node:assert",
|
|
1108
|
+
message: "Please use node:assert/strict instead.",
|
|
1109
|
+
},
|
|
1110
|
+
],
|
|
1111
|
+
],
|
|
1086
1112
|
"n/no-sync": "error",
|
|
1087
1113
|
"n/no-unpublished-import": "warn",
|
|
1088
1114
|
"n/no-unsupported-features/es-syntax": "off",
|
package/dist/modern.mjs
CHANGED
|
@@ -1081,6 +1081,32 @@ const settings$4 = {
|
|
|
1081
1081
|
"n/no-new-require": "error",
|
|
1082
1082
|
"n/no-path-concat": "error",
|
|
1083
1083
|
"n/no-process-exit": "error",
|
|
1084
|
+
"n/no-restricted-import": [
|
|
1085
|
+
"error",
|
|
1086
|
+
[
|
|
1087
|
+
{
|
|
1088
|
+
name: "assert",
|
|
1089
|
+
message: "Please use assert/strict instead.",
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
name: "node:assert",
|
|
1093
|
+
message: "Please use node:assert/strict instead.",
|
|
1094
|
+
},
|
|
1095
|
+
],
|
|
1096
|
+
],
|
|
1097
|
+
"n/no-restricted-require": [
|
|
1098
|
+
"error",
|
|
1099
|
+
[
|
|
1100
|
+
{
|
|
1101
|
+
name: "assert",
|
|
1102
|
+
message: "Please use assert/strict instead.",
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
name: "node:assert",
|
|
1106
|
+
message: "Please use node:assert/strict instead.",
|
|
1107
|
+
},
|
|
1108
|
+
],
|
|
1109
|
+
],
|
|
1084
1110
|
"n/no-sync": "error",
|
|
1085
1111
|
"n/no-unpublished-import": "warn",
|
|
1086
1112
|
"n/no-unsupported-features/es-syntax": "off",
|
package/dist/typescript.cjs
CHANGED
|
@@ -288,7 +288,12 @@ const settings = {
|
|
|
288
288
|
},
|
|
289
289
|
],
|
|
290
290
|
"@typescript-eslint/no-throw-literal": "error",
|
|
291
|
-
"@typescript-eslint/no-unnecessary-condition":
|
|
291
|
+
"@typescript-eslint/no-unnecessary-condition": [
|
|
292
|
+
"error",
|
|
293
|
+
{
|
|
294
|
+
allowConstantLoopConditions: true,
|
|
295
|
+
},
|
|
296
|
+
],
|
|
292
297
|
"@typescript-eslint/no-unnecessary-type-constraint": "error",
|
|
293
298
|
"@typescript-eslint/no-unsafe-argument": "warn",
|
|
294
299
|
"@typescript-eslint/no-unsafe-assignment": "warn",
|
package/dist/typescript.mjs
CHANGED
|
@@ -286,7 +286,12 @@ const settings = {
|
|
|
286
286
|
},
|
|
287
287
|
],
|
|
288
288
|
"@typescript-eslint/no-throw-literal": "error",
|
|
289
|
-
"@typescript-eslint/no-unnecessary-condition":
|
|
289
|
+
"@typescript-eslint/no-unnecessary-condition": [
|
|
290
|
+
"error",
|
|
291
|
+
{
|
|
292
|
+
allowConstantLoopConditions: true,
|
|
293
|
+
},
|
|
294
|
+
],
|
|
290
295
|
"@typescript-eslint/no-unnecessary-type-constraint": "error",
|
|
291
296
|
"@typescript-eslint/no-unsafe-argument": "warn",
|
|
292
297
|
"@typescript-eslint/no-unsafe-assignment": "warn",
|