@meteorlxy/eslint-config 4.2.0 → 4.2.1
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/index.cjs +15 -0
- package/dist/index.d.cts +12 -0
- package/dist/index.d.mts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.mjs +15 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1373,6 +1373,21 @@ const typescriptRules = {
|
|
|
1373
1373
|
],
|
|
1374
1374
|
"@typescript-eslint/prefer-enum-initializers": "error",
|
|
1375
1375
|
"@typescript-eslint/prefer-find": "error",
|
|
1376
|
+
"@typescript-eslint/prefer-nullish-coalescing": [
|
|
1377
|
+
"error",
|
|
1378
|
+
{
|
|
1379
|
+
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
|
|
1380
|
+
ignoreConditionalTests: true,
|
|
1381
|
+
ignoreTernaryTests: false,
|
|
1382
|
+
ignoreMixedLogicalExpressions: false,
|
|
1383
|
+
ignorePrimitives: {
|
|
1384
|
+
bigint: false,
|
|
1385
|
+
boolean: false,
|
|
1386
|
+
number: false,
|
|
1387
|
+
string: true
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
],
|
|
1376
1391
|
"@typescript-eslint/prefer-promise-reject-errors": [
|
|
1377
1392
|
"error",
|
|
1378
1393
|
{ allowEmptyReject: true }
|
package/dist/index.d.cts
CHANGED
|
@@ -1101,6 +1101,18 @@ declare const typescriptRules: {
|
|
|
1101
1101
|
}];
|
|
1102
1102
|
'@typescript-eslint/prefer-enum-initializers': "error";
|
|
1103
1103
|
'@typescript-eslint/prefer-find': "error";
|
|
1104
|
+
'@typescript-eslint/prefer-nullish-coalescing': ["error", {
|
|
1105
|
+
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: boolean;
|
|
1106
|
+
ignoreConditionalTests: boolean;
|
|
1107
|
+
ignoreTernaryTests: boolean;
|
|
1108
|
+
ignoreMixedLogicalExpressions: boolean;
|
|
1109
|
+
ignorePrimitives: {
|
|
1110
|
+
bigint: boolean;
|
|
1111
|
+
boolean: boolean;
|
|
1112
|
+
number: boolean;
|
|
1113
|
+
string: boolean;
|
|
1114
|
+
};
|
|
1115
|
+
}];
|
|
1104
1116
|
'@typescript-eslint/prefer-promise-reject-errors': ["error", {
|
|
1105
1117
|
allowEmptyReject: boolean;
|
|
1106
1118
|
}];
|
package/dist/index.d.mts
CHANGED
|
@@ -1101,6 +1101,18 @@ declare const typescriptRules: {
|
|
|
1101
1101
|
}];
|
|
1102
1102
|
'@typescript-eslint/prefer-enum-initializers': "error";
|
|
1103
1103
|
'@typescript-eslint/prefer-find': "error";
|
|
1104
|
+
'@typescript-eslint/prefer-nullish-coalescing': ["error", {
|
|
1105
|
+
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: boolean;
|
|
1106
|
+
ignoreConditionalTests: boolean;
|
|
1107
|
+
ignoreTernaryTests: boolean;
|
|
1108
|
+
ignoreMixedLogicalExpressions: boolean;
|
|
1109
|
+
ignorePrimitives: {
|
|
1110
|
+
bigint: boolean;
|
|
1111
|
+
boolean: boolean;
|
|
1112
|
+
number: boolean;
|
|
1113
|
+
string: boolean;
|
|
1114
|
+
};
|
|
1115
|
+
}];
|
|
1104
1116
|
'@typescript-eslint/prefer-promise-reject-errors': ["error", {
|
|
1105
1117
|
allowEmptyReject: boolean;
|
|
1106
1118
|
}];
|
package/dist/index.d.ts
CHANGED
|
@@ -1101,6 +1101,18 @@ declare const typescriptRules: {
|
|
|
1101
1101
|
}];
|
|
1102
1102
|
'@typescript-eslint/prefer-enum-initializers': "error";
|
|
1103
1103
|
'@typescript-eslint/prefer-find': "error";
|
|
1104
|
+
'@typescript-eslint/prefer-nullish-coalescing': ["error", {
|
|
1105
|
+
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: boolean;
|
|
1106
|
+
ignoreConditionalTests: boolean;
|
|
1107
|
+
ignoreTernaryTests: boolean;
|
|
1108
|
+
ignoreMixedLogicalExpressions: boolean;
|
|
1109
|
+
ignorePrimitives: {
|
|
1110
|
+
bigint: boolean;
|
|
1111
|
+
boolean: boolean;
|
|
1112
|
+
number: boolean;
|
|
1113
|
+
string: boolean;
|
|
1114
|
+
};
|
|
1115
|
+
}];
|
|
1104
1116
|
'@typescript-eslint/prefer-promise-reject-errors': ["error", {
|
|
1105
1117
|
allowEmptyReject: boolean;
|
|
1106
1118
|
}];
|
package/dist/index.mjs
CHANGED
|
@@ -1361,6 +1361,21 @@ const typescriptRules = {
|
|
|
1361
1361
|
],
|
|
1362
1362
|
"@typescript-eslint/prefer-enum-initializers": "error",
|
|
1363
1363
|
"@typescript-eslint/prefer-find": "error",
|
|
1364
|
+
"@typescript-eslint/prefer-nullish-coalescing": [
|
|
1365
|
+
"error",
|
|
1366
|
+
{
|
|
1367
|
+
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
|
|
1368
|
+
ignoreConditionalTests: true,
|
|
1369
|
+
ignoreTernaryTests: false,
|
|
1370
|
+
ignoreMixedLogicalExpressions: false,
|
|
1371
|
+
ignorePrimitives: {
|
|
1372
|
+
bigint: false,
|
|
1373
|
+
boolean: false,
|
|
1374
|
+
number: false,
|
|
1375
|
+
string: true
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
],
|
|
1364
1379
|
"@typescript-eslint/prefer-promise-reject-errors": [
|
|
1365
1380
|
"error",
|
|
1366
1381
|
{ allowEmptyReject: true }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meteorlxy/eslint-config",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.1",
|
|
4
4
|
"description": "meteorlxy eslint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"config",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"publishConfig": {
|
|
80
80
|
"access": "public"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "3b14d1c2e0f91eb9b71eaf6c6fcd044d3b283ab4"
|
|
83
83
|
}
|