@ofk/eslint-config 0.3.0 → 0.4.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.
package/dist/index.js CHANGED
@@ -501,11 +501,10 @@ var perfectionistStrict = mergeRules(
501
501
  groups: [
502
502
  "type",
503
503
  ["builtin", "external"],
504
- "internal-type",
504
+ "type-internal",
505
505
  "internal",
506
- ["parent-type", "sibling-type", "index-type"],
506
+ ["type-parent", "type-sibling", "type-index"],
507
507
  ["parent", "sibling", "index"],
508
- "object",
509
508
  "side-effect",
510
509
  "side-effect-style",
511
510
  "unknown"
@@ -520,9 +519,12 @@ var perfectionistStrict = mergeRules(
520
519
  "perfectionist/sort-jsx-props": mergeRuleOptions(
521
520
  perfectionistRecommended.rules["perfectionist/sort-jsx-props"],
522
521
  {
523
- customGroups: {
524
- reserved: "^(?:key|ref)$"
525
- },
522
+ customGroups: [
523
+ {
524
+ elementNamePattern: "^(?:key|ref)$",
525
+ groupName: "reserved"
526
+ }
527
+ ],
526
528
  groups: ["reserved", "unknown"]
527
529
  }
528
530
  ),
@@ -758,6 +760,7 @@ var tsEslintOverrideRules = mergeRules(
758
760
  "@typescript-eslint/no-redeclare": jsStrictRules["no-redeclare"],
759
761
  "@typescript-eslint/no-restricted-imports": jsStrictRules["no-restricted-imports"],
760
762
  "@typescript-eslint/no-shadow": jsStrictRules["no-shadow"],
763
+ "@typescript-eslint/no-unused-private-class-members": jsStrictRules["no-unused-private-class-members"],
761
764
  "@typescript-eslint/no-use-before-define": jsStrictRules["no-use-before-define"],
762
765
  "@typescript-eslint/prefer-destructuring": jsStrictRules["prefer-destructuring"],
763
766
  "class-methods-use-this": "off",
@@ -900,6 +903,7 @@ var _eslintplugin = require('@vitest/eslint-plugin'); var _eslintplugin2 = _inte
900
903
  var vitestStrict = mergeRules(
901
904
  _eslintplugin2.default.configs.recommended,
902
905
  {
906
+ "vitest/consistent-each-for": "off",
903
907
  "vitest/consistent-test-filename": "off",
904
908
  "vitest/consistent-test-it": "error",
905
909
  "vitest/consistent-vitest-vi": "error",
@@ -953,6 +957,7 @@ var vitestStrict = mergeRules(
953
957
  "vitest/prefer-importing-vitest-globals": "warn",
954
958
  "vitest/prefer-lowercase-title": "error",
955
959
  "vitest/prefer-mock-promise-shorthand": "error",
960
+ "vitest/prefer-mock-return-shorthand": "error",
956
961
  "vitest/prefer-snapshot-hint": "error",
957
962
  "vitest/prefer-spy-on": "error",
958
963
  "vitest/prefer-strict-boolean-matchers": "off",
@@ -963,11 +968,14 @@ var vitestStrict = mergeRules(
963
968
  "vitest/prefer-to-be-object": "error",
964
969
  "vitest/prefer-to-be-truthy": "error",
965
970
  "vitest/prefer-to-contain": "error",
971
+ "vitest/prefer-to-have-been-called-times": "error",
966
972
  "vitest/prefer-to-have-length": "error",
967
973
  "vitest/prefer-todo": "error",
968
974
  "vitest/prefer-vi-mocked": "error",
975
+ "vitest/require-awaited-expect-poll": "error",
969
976
  "vitest/require-hook": "error",
970
977
  "vitest/require-mock-type-parameters": "off",
978
+ "vitest/require-test-timeout": "off",
971
979
  "vitest/require-to-throw-message": "error",
972
980
  "vitest/require-top-level-describe": "error",
973
981
  "vitest/valid-expect-in-promise": "error",
package/dist/index.mjs CHANGED
@@ -501,11 +501,10 @@ var perfectionistStrict = mergeRules(
501
501
  groups: [
502
502
  "type",
503
503
  ["builtin", "external"],
504
- "internal-type",
504
+ "type-internal",
505
505
  "internal",
506
- ["parent-type", "sibling-type", "index-type"],
506
+ ["type-parent", "type-sibling", "type-index"],
507
507
  ["parent", "sibling", "index"],
508
- "object",
509
508
  "side-effect",
510
509
  "side-effect-style",
511
510
  "unknown"
@@ -520,9 +519,12 @@ var perfectionistStrict = mergeRules(
520
519
  "perfectionist/sort-jsx-props": mergeRuleOptions(
521
520
  perfectionistRecommended.rules["perfectionist/sort-jsx-props"],
522
521
  {
523
- customGroups: {
524
- reserved: "^(?:key|ref)$"
525
- },
522
+ customGroups: [
523
+ {
524
+ elementNamePattern: "^(?:key|ref)$",
525
+ groupName: "reserved"
526
+ }
527
+ ],
526
528
  groups: ["reserved", "unknown"]
527
529
  }
528
530
  ),
@@ -758,6 +760,7 @@ var tsEslintOverrideRules = mergeRules(
758
760
  "@typescript-eslint/no-redeclare": jsStrictRules["no-redeclare"],
759
761
  "@typescript-eslint/no-restricted-imports": jsStrictRules["no-restricted-imports"],
760
762
  "@typescript-eslint/no-shadow": jsStrictRules["no-shadow"],
763
+ "@typescript-eslint/no-unused-private-class-members": jsStrictRules["no-unused-private-class-members"],
761
764
  "@typescript-eslint/no-use-before-define": jsStrictRules["no-use-before-define"],
762
765
  "@typescript-eslint/prefer-destructuring": jsStrictRules["prefer-destructuring"],
763
766
  "class-methods-use-this": "off",
@@ -900,6 +903,7 @@ import { defineConfig as defineConfig5 } from "eslint/config";
900
903
  var vitestStrict = mergeRules(
901
904
  pluginVitest.configs.recommended,
902
905
  {
906
+ "vitest/consistent-each-for": "off",
903
907
  "vitest/consistent-test-filename": "off",
904
908
  "vitest/consistent-test-it": "error",
905
909
  "vitest/consistent-vitest-vi": "error",
@@ -953,6 +957,7 @@ var vitestStrict = mergeRules(
953
957
  "vitest/prefer-importing-vitest-globals": "warn",
954
958
  "vitest/prefer-lowercase-title": "error",
955
959
  "vitest/prefer-mock-promise-shorthand": "error",
960
+ "vitest/prefer-mock-return-shorthand": "error",
956
961
  "vitest/prefer-snapshot-hint": "error",
957
962
  "vitest/prefer-spy-on": "error",
958
963
  "vitest/prefer-strict-boolean-matchers": "off",
@@ -963,11 +968,14 @@ var vitestStrict = mergeRules(
963
968
  "vitest/prefer-to-be-object": "error",
964
969
  "vitest/prefer-to-be-truthy": "error",
965
970
  "vitest/prefer-to-contain": "error",
971
+ "vitest/prefer-to-have-been-called-times": "error",
966
972
  "vitest/prefer-to-have-length": "error",
967
973
  "vitest/prefer-todo": "error",
968
974
  "vitest/prefer-vi-mocked": "error",
975
+ "vitest/require-awaited-expect-poll": "error",
969
976
  "vitest/require-hook": "error",
970
977
  "vitest/require-mock-type-parameters": "off",
978
+ "vitest/require-test-timeout": "off",
971
979
  "vitest/require-to-throw-message": "error",
972
980
  "vitest/require-top-level-describe": "error",
973
981
  "vitest/valid-expect-in-promise": "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ofk/eslint-config",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": "ofk (https://github.com/ofk/)",
@@ -47,18 +47,18 @@
47
47
  "peerDependencies": {
48
48
  "@eslint-community/eslint-plugin-eslint-comments": "^4.3.0",
49
49
  "@eslint/js": "^9.27.0",
50
- "@vitest/eslint-plugin": "^1.3.4",
50
+ "@vitest/eslint-plugin": "^1.6.9",
51
51
  "confusing-browser-globals": "^1.0.1",
52
52
  "eslint-plugin-import": "^2.32.0",
53
53
  "eslint-plugin-jsx-a11y": "^6.10.0",
54
- "eslint-plugin-perfectionist": "^4.0.0",
54
+ "eslint-plugin-perfectionist": "^5.6.0",
55
55
  "eslint-plugin-react": "^7.35.0",
56
56
  "eslint-plugin-react-hooks": "^7.0.0",
57
57
  "eslint-plugin-react-refresh": "^0.4.16",
58
- "eslint-plugin-unicorn": "^61.0.2",
58
+ "eslint-plugin-unicorn": "^63.0.0",
59
59
  "eslint-plugin-unused-imports": "^4.1.1",
60
60
  "globals": ">=14.0.0",
61
- "typescript-eslint": "^8.15.0"
61
+ "typescript-eslint": "^8.47.0"
62
62
  },
63
63
  "peerDependenciesMeta": {
64
64
  "@eslint-community/eslint-plugin-eslint-comments": {
@@ -108,34 +108,34 @@
108
108
  "@rollup/rollup-linux-x64-gnu": "*"
109
109
  },
110
110
  "devDependencies": {
111
- "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
112
- "@eslint/config-helpers": "^0.4.1",
113
- "@eslint/js": "^9.38.0",
111
+ "@eslint-community/eslint-plugin-eslint-comments": "^4.7.0",
112
+ "@eslint/config-helpers": "^0.5.2",
113
+ "@eslint/js": "^9.39.3",
114
114
  "@types/confusing-browser-globals": "^1.0.3",
115
115
  "@types/eslint-config-prettier": "^6.11.3",
116
116
  "@types/eslint-plugin-jsx-a11y": "^6.10.1",
117
- "@vitest/eslint-plugin": "^1.3.23",
117
+ "@vitest/eslint-plugin": "^1.6.9",
118
118
  "confusing-browser-globals": "^1.0.11",
119
- "eslint": "^9.38.0",
119
+ "eslint": "^9.39.3",
120
120
  "eslint-config-prettier": "^10.1.8",
121
121
  "eslint-plugin-import": "^2.32.0",
122
122
  "eslint-plugin-jsx-a11y": "^6.10.2",
123
- "eslint-plugin-perfectionist": "^4.15.1",
123
+ "eslint-plugin-perfectionist": "^5.6.0",
124
124
  "eslint-plugin-react": "^7.37.5",
125
- "eslint-plugin-react-hooks": "^7.0.0",
126
- "eslint-plugin-react-refresh": "^0.4.24",
127
- "eslint-plugin-unicorn": "^61.0.2",
128
- "eslint-plugin-unused-imports": "^4.3.0",
129
- "globals": "^16.4.0",
125
+ "eslint-plugin-react-hooks": "^7.0.1",
126
+ "eslint-plugin-react-refresh": "^0.5.2",
127
+ "eslint-plugin-unicorn": "^63.0.0",
128
+ "eslint-plugin-unused-imports": "^4.4.1",
129
+ "globals": "^17.4.0",
130
130
  "husky": "^9.1.7",
131
- "lint-staged": "^16.2.5",
131
+ "lint-staged": "^16.3.1",
132
132
  "npm-run-all": "^4.1.5",
133
- "prettier": "^3.6.2",
133
+ "prettier": "^3.8.1",
134
134
  "prettier-package-json": "^2.8.0",
135
- "tsup": "^8.5.0",
135
+ "tsup": "^8.5.1",
136
136
  "typescript": "^5.9.3",
137
- "typescript-eslint": "^8.46.2",
138
- "vitest": "^3.2.4"
137
+ "typescript-eslint": "^8.56.1",
138
+ "vitest": "^4.0.18"
139
139
  },
140
140
  "keywords": [],
141
141
  "lint-staged": {