eslint-config-setup 0.3.2 → 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.
@@ -1,6 +1,6 @@
1
1
  import { Linter } from 'eslint';
2
2
 
3
- interface ConfigOptions {
3
+ type ConfigOptions = {
4
4
  /** Enable React 19+ rules via `@eslint-react` (Hooks, DOM, Web API leaks, JSX-A11y) */
5
5
  react?: boolean;
6
6
  /** Enable Node.js-specific rules and globals */
@@ -9,10 +9,10 @@ interface ConfigOptions {
9
9
  ai?: boolean;
10
10
  /** Disable rules already covered by OxLint (use with oxlint && eslint) */
11
11
  oxlint?: boolean;
12
- }
12
+ };
13
13
  /** Options for pre-generated OxLint configs (oxlint flag is irrelevant here). */
14
14
  type OxlintConfigOptions = Omit<ConfigOptions, "oxlint">;
15
- interface OxlintConfigResult {
15
+ type OxlintConfigResult = {
16
16
  $schema?: string;
17
17
  plugins?: string[];
18
18
  categories?: Record<string, string>;
@@ -23,12 +23,12 @@ interface OxlintConfigResult {
23
23
  files: string[];
24
24
  rules?: Record<string, unknown>;
25
25
  }>;
26
- }
26
+ };
27
27
  type FlatConfigArray = Linter.Config[];
28
28
  type RuleSeverity = "error" | "off" | "warn";
29
29
  type RuleScope = "configs" | "declarations" | "e2e" | "scripts" | "stories" | "tests";
30
- interface RuleOptions {
30
+ type RuleOptions = {
31
31
  scope?: RuleScope;
32
- }
32
+ };
33
33
 
34
- export type { ConfigOptions as C, FlatConfigArray as F, OxlintConfigOptions as O, RuleSeverity as R, OxlintConfigResult as a, RuleOptions as b, RuleScope as c };
34
+ export type { ConfigOptions as C, FlatConfigArray as F, OxlintConfigOptions as O, RuleSeverity as R, RuleOptions as a, OxlintConfigResult as b, RuleScope as c };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-setup",
3
- "version": "0.3.2",
3
+ "version": "0.4.0",
4
4
  "description": "Pre-generated, permutation-based ESLint flat configs for modern TypeScript & React projects",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -65,48 +65,49 @@
65
65
  "typescript": ">= 5.0"
66
66
  },
67
67
  "dependencies": {
68
- "@cspell/eslint-plugin": "^9.7.0",
68
+ "@cspell/eslint-plugin": "^10.0.0",
69
+ "@eslint-react/eslint-plugin": "^4.2.3",
69
70
  "@eslint/js": "^10.0.1",
70
- "@eslint/json": "^1.0.1",
71
- "@vitest/eslint-plugin": "^1.6.9",
72
- "eslint-plugin-compat": "^7.0.1",
71
+ "@eslint/json": "^1.2.0",
72
+ "@stylistic/eslint-plugin": "^5.10.0",
73
+ "@vitest/eslint-plugin": "^1.6.16",
73
74
  "eslint-config-prettier": "^10.1.8",
75
+ "eslint-plugin-compat": "^7.0.1",
74
76
  "eslint-plugin-de-morgan": "^2.1.1",
75
- "eslint-plugin-import-x": "^4.16.1",
76
- "eslint-plugin-jsdoc": "^62.7.1",
77
+ "eslint-plugin-import-x": "^4.16.2",
78
+ "eslint-plugin-jsdoc": "^62.9.0",
77
79
  "eslint-plugin-jsx-a11y": "^6.10.2",
78
80
  "eslint-plugin-mdx": "^3.7.0",
79
81
  "eslint-plugin-n": "^17.24.0",
80
- "eslint-plugin-oxlint": "^1.51.0",
81
- "eslint-plugin-package-json": "^0.89.2",
82
- "eslint-plugin-perfectionist": "^5.6.0",
83
- "eslint-plugin-playwright": "^2.9.0",
84
- "@eslint-react/eslint-plugin": "^2.13.0",
85
- "@stylistic/eslint-plugin": "^4.2.0",
86
- "eslint-plugin-react-hooks": "^7.0.1",
82
+ "eslint-plugin-oxlint": "^1.61.0",
83
+ "eslint-plugin-package-json": "^0.91.1",
84
+ "eslint-plugin-perfectionist": "^5.9.0",
85
+ "eslint-plugin-playwright": "^2.10.2",
86
+ "eslint-plugin-react-hooks": "^7.1.1",
87
87
  "eslint-plugin-react-refresh": "^0.5.2",
88
- "eslint-plugin-react-you-might-not-need-an-effect": "^0.9.2",
89
- "eslint-plugin-regexp": "^3.0.0",
88
+ "eslint-plugin-react-you-might-not-need-an-effect": "^0.9.3",
89
+ "eslint-plugin-regexp": "^3.1.0",
90
90
  "eslint-plugin-security": "^4.0.0",
91
- "eslint-plugin-sonarjs": "^4.0.0",
92
- "eslint-plugin-storybook": "^10.2.15",
93
- "eslint-plugin-testing-library": "^7.16.0",
94
- "eslint-plugin-unicorn": "^63.0.0",
91
+ "eslint-plugin-sonarjs": "^4.0.3",
92
+ "eslint-plugin-storybook": "^10.3.5",
93
+ "eslint-plugin-testing-library": "^7.16.2",
94
+ "eslint-plugin-unicorn": "^64.0.0",
95
95
  "eslint-plugin-unused-imports": "^4.4.1",
96
- "globals": "^17.4.0",
97
- "typescript-eslint": "^8.56.1"
96
+ "globals": "^17.5.0",
97
+ "typescript-eslint": "^8.59.0"
98
98
  },
99
99
  "devDependencies": {
100
- "@oxlint/migrate": "^1.51.0",
101
- "@types/node": "^25.3.3",
102
- "@types/picomatch": "^4.0.2",
103
- "@vitest/coverage-v8": "^4.0.18",
104
- "eslint": "^10.0.2",
105
- "oxlint": "^1.51.0",
106
- "picomatch": "^4.0.3",
100
+ "@oxlint/migrate": "^1.61.0",
101
+ "@types/node": "^25.6.0",
102
+ "@types/picomatch": "^4.0.3",
103
+ "@vitest/coverage-v8": "^4.1.5",
104
+ "eslint": "^10.2.1",
105
+ "oxlint": "^1.61.0",
106
+ "picomatch": "^4.0.4",
107
+ "storybook": "^10.3.5",
107
108
  "tsup": "^8.5.1",
108
109
  "tsx": "^4.21.0",
109
- "typescript": "^5.9.3",
110
- "vitest": "^4.0.18"
110
+ "typescript": "^6.0.3",
111
+ "vitest": "^4.1.5"
111
112
  }
112
113
  }