@wondermarin/eslint-config 2.1.0 → 2.3.0

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.
Files changed (2) hide show
  1. package/dist/main.js +25 -10
  2. package/package.json +18 -19
package/dist/main.js CHANGED
@@ -591,7 +591,8 @@ async function typescriptConfig() {
591
591
  "error",
592
592
  {
593
593
  ignoreArrowShorthand: false,
594
- ignoreVoidOperator: false
594
+ ignoreVoidOperator: false,
595
+ ignoreVoidReturningFunctions: false
595
596
  }
596
597
  ],
597
598
  "@typescript-eslint/no-dupe-class-members": "off",
@@ -659,7 +660,8 @@ async function typescriptConfig() {
659
660
  checksConditionals: true,
660
661
  checksSpreads: true,
661
662
  checksVoidReturn: {
662
- attributes: false
663
+ attributes: false,
664
+ properties: false
663
665
  }
664
666
  }
665
667
  ],
@@ -774,13 +776,9 @@ async function typescriptConfig() {
774
776
  allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
775
777
  ignoreConditionalTests: true,
776
778
  ignoreMixedLogicalExpressions: true,
777
- ignorePrimitives: {
778
- bigint: false,
779
- boolean: false,
780
- number: false,
781
- string: false
782
- },
783
- ignoreTernaryTests: false
779
+ ignorePrimitives: true,
780
+ ignoreTernaryTests: false,
781
+ ignoreBooleanCoercion: false
784
782
  }
785
783
  ],
786
784
  "@typescript-eslint/prefer-optional-chain": [
@@ -843,7 +841,8 @@ async function typescriptConfig() {
843
841
  "error",
844
842
  {
845
843
  allowDefaultCaseForExhaustiveSwitch: true,
846
- requireDefaultForNonUnion: false
844
+ requireDefaultForNonUnion: false,
845
+ considerDefaultExhaustiveForUnions: false
847
846
  }
848
847
  ],
849
848
  "@typescript-eslint/triple-slash-reference": [
@@ -1091,6 +1090,7 @@ async function stylisticConfig() {
1091
1090
  type: "line-length",
1092
1091
  order: "desc",
1093
1092
  ignoreCase: true,
1093
+ specialCharacters: "keep",
1094
1094
  partitionByComment: false,
1095
1095
  partitionByNewLine: true,
1096
1096
  groupKind: "values-first",
@@ -1103,6 +1103,7 @@ async function stylisticConfig() {
1103
1103
  type: "line-length",
1104
1104
  order: "desc",
1105
1105
  ignoreCase: true,
1106
+ specialCharacters: "keep",
1106
1107
  internalPattern: ["@/**"],
1107
1108
  sortSideEffects: false,
1108
1109
  newlinesBetween: "always",
@@ -1138,6 +1139,7 @@ async function stylisticConfig() {
1138
1139
  type: "line-length",
1139
1140
  order: "desc",
1140
1141
  ignoreCase: true,
1142
+ specialCharacters: "keep",
1141
1143
  groupKind: "values-first",
1142
1144
  partitionByComment: false,
1143
1145
  partitionByNewLine: true,
@@ -1150,6 +1152,7 @@ async function stylisticConfig() {
1150
1152
  type: "line-length",
1151
1153
  order: "desc",
1152
1154
  ignoreCase: true,
1155
+ specialCharacters: "keep",
1153
1156
  ignoreAlias: false,
1154
1157
  groupKind: "values-first",
1155
1158
  partitionByComment: false,
@@ -1252,6 +1255,18 @@ function fixupRule(ruleDefinition) {
1252
1255
  ...isLegacyRule ? void 0 : ruleDefinition,
1253
1256
  create: ruleCreate
1254
1257
  };
1258
+ const { schema } = ruleDefinition;
1259
+ if (schema) {
1260
+ if (!newRuleDefinition.meta) {
1261
+ newRuleDefinition.meta = { schema };
1262
+ } else {
1263
+ newRuleDefinition.meta = {
1264
+ ...newRuleDefinition.meta,
1265
+ // top-level `schema` had precedence over `meta.schema` so it's okay to overwrite `meta.schema` if it exists
1266
+ schema
1267
+ };
1268
+ }
1269
+ }
1255
1270
  fixedUpRuleReplacements.set(ruleDefinition, newRuleDefinition);
1256
1271
  fixedUpRules.add(newRuleDefinition);
1257
1272
  return newRuleDefinition;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wondermarin/eslint-config",
3
- "version": "2.1.0",
3
+ "version": "2.3.0",
4
4
  "description": "Personal ESLint config.",
5
5
  "homepage": "https://github.com/Wondermarin/eslint-config#readme",
6
6
  "repository": {
@@ -28,38 +28,37 @@
28
28
  "build": "tsup"
29
29
  },
30
30
  "dependencies": {
31
- "@stylistic/eslint-plugin": "^2.9.0",
31
+ "@stylistic/eslint-plugin": "^2.10.1",
32
32
  "eslint-config-prettier": "^9.1.0",
33
- "eslint-plugin-package-json": "^0.15.3",
34
- "eslint-plugin-perfectionist": "^3.8.0",
33
+ "eslint-plugin-package-json": "^0.15.6",
34
+ "eslint-plugin-perfectionist": "^3.9.1",
35
35
  "eslint-plugin-prettier": "^5.2.1",
36
- "globals": "^15.11.0",
36
+ "globals": "^15.12.0",
37
37
  "jsonc-eslint-parser": "^2.4.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@eslint/compat": "^1.2.0",
40
+ "@eslint/compat": "^1.2.3",
41
41
  "@types/eslint": "^9.6.1",
42
42
  "@types/eslint-config-prettier": "^6.11.3",
43
- "@types/node": "^22.7.5",
44
- "@typescript-eslint/eslint-plugin": "^8.8.1",
45
- "@typescript-eslint/parser": "^8.8.1",
43
+ "@types/node": "^22.9.0",
44
+ "@typescript-eslint/eslint-plugin": "^8.14.0",
45
+ "@typescript-eslint/parser": "^8.14.0",
46
46
  "@wondermarin/prettier-config": "^1.0.0",
47
47
  "defu": "^6.1.4",
48
- "eslint": "^9.12.0",
49
- "eslint-plugin-react": "^7.37.1",
50
- "eslint-plugin-react-hooks": "^4.6.2",
51
- "jiti": "^2.3.3",
48
+ "eslint": "^9.14.0",
49
+ "eslint-plugin-react": "^7.37.2",
50
+ "eslint-plugin-react-hooks": "^5.0.0",
51
+ "jiti": "^2.4.0",
52
52
  "prettier": "^3.3.3",
53
- "tsup": "^8.3.0",
54
- "tsx": "^4.16.5",
53
+ "tsup": "^8.3.5",
55
54
  "typescript": "^5.6.3"
56
55
  },
57
56
  "peerDependencies": {
58
- "@typescript-eslint/eslint-plugin": "^8.8",
59
- "@typescript-eslint/parser": "^8.8",
60
- "eslint": "^9.12",
57
+ "@typescript-eslint/eslint-plugin": "^8.14",
58
+ "@typescript-eslint/parser": "^8.14",
59
+ "eslint": "^9.14",
61
60
  "eslint-plugin-react": "^7.37",
62
- "eslint-plugin-react-hooks": "^4.6"
61
+ "eslint-plugin-react-hooks": "^5"
63
62
  },
64
63
  "peerDependenciesMeta": {
65
64
  "@typescript-eslint/eslint-plugin": {