eslint-config-setup 0.3.0 → 0.3.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.
@@ -12,6 +12,18 @@ interface ConfigOptions {
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 {
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
+ }
15
27
  type FlatConfigArray = Linter.Config[];
16
28
  type RuleSeverity = "error" | "off" | "warn";
17
29
  type RuleScope = "configs" | "declarations" | "e2e" | "scripts" | "stories" | "tests";
@@ -19,4 +31,4 @@ interface RuleOptions {
19
31
  scope?: RuleScope;
20
32
  }
21
33
 
22
- export type { ConfigOptions as C, FlatConfigArray as F, OxlintConfigOptions as O, RuleSeverity as R, RuleOptions as a, RuleScope as b };
34
+ export type { ConfigOptions as C, FlatConfigArray as F, OxlintConfigOptions as O, RuleSeverity as R, OxlintConfigResult as a, RuleOptions 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.0",
3
+ "version": "0.3.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",