@meteorlxy/eslint-config 4.2.0 → 4.2.2

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 CHANGED
@@ -1319,6 +1319,8 @@ const typescriptRules = {
1319
1319
  "@typescript-eslint/no-import-type-side-effects": "error",
1320
1320
  "@typescript-eslint/no-invalid-this": "off",
1321
1321
  // checked by typescript
1322
+ "@typescript-eslint/no-invalid-void-type": "off",
1323
+ // @see https://github.com/typescript-eslint/typescript-eslint/issues/8113
1322
1324
  "@typescript-eslint/no-redeclare": "off",
1323
1325
  // checked by typescript
1324
1326
  "@typescript-eslint/no-require-imports": ["error", { allow: [] }],
@@ -1373,6 +1375,21 @@ const typescriptRules = {
1373
1375
  ],
1374
1376
  "@typescript-eslint/prefer-enum-initializers": "error",
1375
1377
  "@typescript-eslint/prefer-find": "error",
1378
+ "@typescript-eslint/prefer-nullish-coalescing": [
1379
+ "error",
1380
+ {
1381
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
1382
+ ignoreConditionalTests: true,
1383
+ ignoreTernaryTests: false,
1384
+ ignoreMixedLogicalExpressions: false,
1385
+ ignorePrimitives: {
1386
+ bigint: false,
1387
+ boolean: false,
1388
+ number: false,
1389
+ string: true
1390
+ }
1391
+ }
1392
+ ],
1376
1393
  "@typescript-eslint/prefer-promise-reject-errors": [
1377
1394
  "error",
1378
1395
  { allowEmptyReject: true }
package/dist/index.d.cts CHANGED
@@ -1052,6 +1052,7 @@ declare const typescriptRules: {
1052
1052
  '@typescript-eslint/no-empty-interface': "off";
1053
1053
  '@typescript-eslint/no-import-type-side-effects': "error";
1054
1054
  '@typescript-eslint/no-invalid-this': "off";
1055
+ '@typescript-eslint/no-invalid-void-type': "off";
1055
1056
  '@typescript-eslint/no-redeclare': "off";
1056
1057
  '@typescript-eslint/no-require-imports': ["error", {
1057
1058
  allow: never[];
@@ -1101,6 +1102,18 @@ declare const typescriptRules: {
1101
1102
  }];
1102
1103
  '@typescript-eslint/prefer-enum-initializers': "error";
1103
1104
  '@typescript-eslint/prefer-find': "error";
1105
+ '@typescript-eslint/prefer-nullish-coalescing': ["error", {
1106
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: boolean;
1107
+ ignoreConditionalTests: boolean;
1108
+ ignoreTernaryTests: boolean;
1109
+ ignoreMixedLogicalExpressions: boolean;
1110
+ ignorePrimitives: {
1111
+ bigint: boolean;
1112
+ boolean: boolean;
1113
+ number: boolean;
1114
+ string: boolean;
1115
+ };
1116
+ }];
1104
1117
  '@typescript-eslint/prefer-promise-reject-errors': ["error", {
1105
1118
  allowEmptyReject: boolean;
1106
1119
  }];
package/dist/index.d.mts CHANGED
@@ -1052,6 +1052,7 @@ declare const typescriptRules: {
1052
1052
  '@typescript-eslint/no-empty-interface': "off";
1053
1053
  '@typescript-eslint/no-import-type-side-effects': "error";
1054
1054
  '@typescript-eslint/no-invalid-this': "off";
1055
+ '@typescript-eslint/no-invalid-void-type': "off";
1055
1056
  '@typescript-eslint/no-redeclare': "off";
1056
1057
  '@typescript-eslint/no-require-imports': ["error", {
1057
1058
  allow: never[];
@@ -1101,6 +1102,18 @@ declare const typescriptRules: {
1101
1102
  }];
1102
1103
  '@typescript-eslint/prefer-enum-initializers': "error";
1103
1104
  '@typescript-eslint/prefer-find': "error";
1105
+ '@typescript-eslint/prefer-nullish-coalescing': ["error", {
1106
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: boolean;
1107
+ ignoreConditionalTests: boolean;
1108
+ ignoreTernaryTests: boolean;
1109
+ ignoreMixedLogicalExpressions: boolean;
1110
+ ignorePrimitives: {
1111
+ bigint: boolean;
1112
+ boolean: boolean;
1113
+ number: boolean;
1114
+ string: boolean;
1115
+ };
1116
+ }];
1104
1117
  '@typescript-eslint/prefer-promise-reject-errors': ["error", {
1105
1118
  allowEmptyReject: boolean;
1106
1119
  }];
package/dist/index.d.ts CHANGED
@@ -1052,6 +1052,7 @@ declare const typescriptRules: {
1052
1052
  '@typescript-eslint/no-empty-interface': "off";
1053
1053
  '@typescript-eslint/no-import-type-side-effects': "error";
1054
1054
  '@typescript-eslint/no-invalid-this': "off";
1055
+ '@typescript-eslint/no-invalid-void-type': "off";
1055
1056
  '@typescript-eslint/no-redeclare': "off";
1056
1057
  '@typescript-eslint/no-require-imports': ["error", {
1057
1058
  allow: never[];
@@ -1101,6 +1102,18 @@ declare const typescriptRules: {
1101
1102
  }];
1102
1103
  '@typescript-eslint/prefer-enum-initializers': "error";
1103
1104
  '@typescript-eslint/prefer-find': "error";
1105
+ '@typescript-eslint/prefer-nullish-coalescing': ["error", {
1106
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: boolean;
1107
+ ignoreConditionalTests: boolean;
1108
+ ignoreTernaryTests: boolean;
1109
+ ignoreMixedLogicalExpressions: boolean;
1110
+ ignorePrimitives: {
1111
+ bigint: boolean;
1112
+ boolean: boolean;
1113
+ number: boolean;
1114
+ string: boolean;
1115
+ };
1116
+ }];
1104
1117
  '@typescript-eslint/prefer-promise-reject-errors': ["error", {
1105
1118
  allowEmptyReject: boolean;
1106
1119
  }];
package/dist/index.mjs CHANGED
@@ -1307,6 +1307,8 @@ const typescriptRules = {
1307
1307
  "@typescript-eslint/no-import-type-side-effects": "error",
1308
1308
  "@typescript-eslint/no-invalid-this": "off",
1309
1309
  // checked by typescript
1310
+ "@typescript-eslint/no-invalid-void-type": "off",
1311
+ // @see https://github.com/typescript-eslint/typescript-eslint/issues/8113
1310
1312
  "@typescript-eslint/no-redeclare": "off",
1311
1313
  // checked by typescript
1312
1314
  "@typescript-eslint/no-require-imports": ["error", { allow: [] }],
@@ -1361,6 +1363,21 @@ const typescriptRules = {
1361
1363
  ],
1362
1364
  "@typescript-eslint/prefer-enum-initializers": "error",
1363
1365
  "@typescript-eslint/prefer-find": "error",
1366
+ "@typescript-eslint/prefer-nullish-coalescing": [
1367
+ "error",
1368
+ {
1369
+ allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
1370
+ ignoreConditionalTests: true,
1371
+ ignoreTernaryTests: false,
1372
+ ignoreMixedLogicalExpressions: false,
1373
+ ignorePrimitives: {
1374
+ bigint: false,
1375
+ boolean: false,
1376
+ number: false,
1377
+ string: true
1378
+ }
1379
+ }
1380
+ ],
1364
1381
  "@typescript-eslint/prefer-promise-reject-errors": [
1365
1382
  "error",
1366
1383
  { allowEmptyReject: true }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meteorlxy/eslint-config",
3
- "version": "4.2.0",
3
+ "version": "4.2.2",
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": "6e497d20ff7edbb3a34ed6a3d4374bed8d859574"
82
+ "gitHead": "981f3bdeae7b3eda356da94e272bb3c2d09f8669"
83
83
  }