eslint-config-setup 0.5.0 → 0.5.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.
@@ -0,0 +1,32 @@
1
+ import { Linter } from "eslint";
2
+
3
+ //#region src/types.d.ts
4
+ type ConfigOptions = {
5
+ /** Enable React 19+ rules via `@eslint-react` (Hooks, DOM, Web API leaks, JSX-A11y) */react?: boolean; /** Enable Node.js-specific rules and globals */
6
+ node?: boolean; /** Enable strict clean-code rules optimized for AI-generated code */
7
+ ai?: boolean; /** Disable rules already covered by OxLint (use with oxlint && eslint) */
8
+ oxlint?: boolean;
9
+ };
10
+ /** Options for pre-generated OxLint configs (oxlint flag is irrelevant here). */
11
+ type OxlintConfigOptions = Omit<ConfigOptions, "oxlint">;
12
+ type OxlintConfigResult = {
13
+ $schema?: string;
14
+ plugins?: string[];
15
+ categories?: Record<string, string>;
16
+ env?: Record<string, boolean>;
17
+ globals?: Record<string, string>;
18
+ rules?: Record<string, unknown>;
19
+ overrides?: Array<{
20
+ files: string[];
21
+ rules?: Record<string, unknown>;
22
+ }>;
23
+ };
24
+ type FlatConfigArray = Linter.Config[];
25
+ type RuleSeverity = "error" | "off" | "warn";
26
+ type RuleScope = "configs" | "declarations" | "e2e" | "scripts" | "stories" | "tests";
27
+ type RuleOptions = {
28
+ scope?: RuleScope;
29
+ };
30
+ //#endregion
31
+ export { RuleOptions as a, OxlintConfigResult as i, FlatConfigArray as n, RuleScope as o, OxlintConfigOptions as r, RuleSeverity as s, ConfigOptions as t };
32
+ //# sourceMappingURL=types-DElYtiZE.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-DElYtiZE.d.ts","names":[],"sources":["../src/types.ts"],"mappings":";;;KAEY,aAAA;yFAEV,KAAA,YAFuB;EAIvB,IAAA,YAJuB;EAMvB,EAAA,YAFA;EAIA,MAAA;AAAA;;KAIU,mBAAA,GAAsB,IAAI,CAAC,aAAA;AAAA,KAE3B,kBAAA;EACV,OAAA;EACA,OAAA;EACA,UAAA,GAAa,MAAA;EACb,GAAA,GAAM,MAAA;EACN,OAAA,GAAU,MAAA;EACV,KAAA,GAAQ,MAAA;EACR,SAAA,GAAY,KAAA;IAAQ,KAAA;IAAiB,KAAA,GAAQ,MAAA;EAAA;AAAA;AAAA,KAInC,eAAA,GAAkB,MAAA,CAAO,MAAM;AAAA,KAC/B,YAAA;AAAA,KAEA,SAAA;AAAA,KAQA,WAAA;EACV,KAAA,GAAQ,SAAS;AAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-setup",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
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",
@@ -20,7 +20,7 @@
20
20
  ],
21
21
  "scripts": {
22
22
  "check": "tsc --noEmit",
23
- "build": "tsup",
23
+ "build": "tsdown",
24
24
  "generate": "node --import tsx src/build/generate.ts",
25
25
  "react:rules:check": "tsx src/build/check-react-rule-surface.ts",
26
26
  "prepublishOnly": "npm run build && npm run generate",
@@ -107,7 +107,7 @@
107
107
  "oxlint": "^1.72.0",
108
108
  "picomatch": "^4.0.5",
109
109
  "storybook": "^10.4.6",
110
- "tsup": "^8.5.1",
110
+ "tsdown": "^0.22.3",
111
111
  "tsx": "^4.23.0",
112
112
  "typescript": "^6.0.3",
113
113
  "vitest": "^4.1.10"
@@ -1,34 +0,0 @@
1
- import { Linter } from 'eslint';
2
-
3
- type ConfigOptions = {
4
- /** Enable React 19+ rules via `@eslint-react` (Hooks, DOM, Web API leaks, JSX-A11y) */
5
- react?: boolean;
6
- /** Enable Node.js-specific rules and globals */
7
- node?: boolean;
8
- /** Enable strict clean-code rules optimized for AI-generated code */
9
- ai?: boolean;
10
- /** Disable rules already covered by OxLint (use with oxlint && eslint) */
11
- oxlint?: boolean;
12
- };
13
- /** Options for pre-generated OxLint configs (oxlint flag is irrelevant here). */
14
- type OxlintConfigOptions = Omit<ConfigOptions, "oxlint">;
15
- type OxlintConfigResult = {
16
- $schema?: string;
17
- plugins?: string[];
18
- categories?: Record<string, string>;
19
- env?: Record<string, boolean>;
20
- globals?: Record<string, string>;
21
- rules?: Record<string, unknown>;
22
- overrides?: Array<{
23
- files: string[];
24
- rules?: Record<string, unknown>;
25
- }>;
26
- };
27
- type FlatConfigArray = Linter.Config[];
28
- type RuleSeverity = "error" | "off" | "warn";
29
- type RuleScope = "configs" | "declarations" | "e2e" | "scripts" | "stories" | "tests";
30
- type RuleOptions = {
31
- scope?: RuleScope;
32
- };
33
-
34
- export type { ConfigOptions as C, FlatConfigArray as F, OxlintConfigOptions as O, RuleSeverity as R, RuleOptions as a, OxlintConfigResult as b, RuleScope as c };