eslint-plugin-baseline-js 0.1.0 → 0.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.
package/dist/index.d.cts CHANGED
@@ -16,14 +16,6 @@ type BaselineName = (typeof BASELINE)[keyof typeof BASELINE];
16
16
  type BaselineOption = BaselineName | number;
17
17
  //#endregion
18
18
  //#region src/configs/baseline.d.ts
19
- declare function baselineConfigs(opts?: {
20
- available?: BaselineOption;
21
- baseline?: BaselineOption;
22
- env?: "browser" | "worker" | "node";
23
- level?: "error" | "warn";
24
- }): {
25
- rules: Record<string, unknown>;
26
- }[];
27
19
  /**
28
20
  * Recommended config: enable Baseline with Web APIs and JS builtins detection on auto preset.
29
21
  * - baseline: defaults to 'widely'
@@ -35,8 +27,9 @@ declare function recommendedConfig(opts?: {
35
27
  env?: "browser" | "worker" | "node";
36
28
  level?: "error" | "warn";
37
29
  }): {
38
- rules: Record<string, unknown>;
39
- }[];
30
+ readonly files: readonly ["**/*.{js,cjs,mjs,jsx}"];
31
+ readonly rules: Record<string, unknown>;
32
+ };
40
33
  /**
41
34
  * Recommended config for TypeScript-aware projects:
42
35
  * - Uses 'type-aware' preset to require type information for instance-member checks.
@@ -48,14 +41,14 @@ declare function recommendedTsConfig(opts?: {
48
41
  env?: "browser" | "worker" | "node";
49
42
  level?: "error" | "warn";
50
43
  }): {
51
- rules: Record<string, unknown>;
52
- }[];
44
+ readonly files: readonly ["**/*.{ts,tsx}"];
45
+ readonly rules: Record<string, unknown>;
46
+ };
53
47
  //#endregion
54
48
  //#region src/index.d.ts
55
49
  declare const _default: {
56
50
  readonly rules: Record<string, Rule.RuleModule>;
57
51
  readonly configs: {
58
- readonly baseline: typeof baselineConfigs;
59
52
  readonly recommended: typeof recommendedConfig;
60
53
  readonly "recommended-ts": typeof recommendedTsConfig;
61
54
  };
package/dist/index.d.mts CHANGED
@@ -16,14 +16,6 @@ type BaselineName = (typeof BASELINE)[keyof typeof BASELINE];
16
16
  type BaselineOption = BaselineName | number;
17
17
  //#endregion
18
18
  //#region src/configs/baseline.d.ts
19
- declare function baselineConfigs(opts?: {
20
- available?: BaselineOption;
21
- baseline?: BaselineOption;
22
- env?: "browser" | "worker" | "node";
23
- level?: "error" | "warn";
24
- }): {
25
- rules: Record<string, unknown>;
26
- }[];
27
19
  /**
28
20
  * Recommended config: enable Baseline with Web APIs and JS builtins detection on auto preset.
29
21
  * - baseline: defaults to 'widely'
@@ -35,8 +27,9 @@ declare function recommendedConfig(opts?: {
35
27
  env?: "browser" | "worker" | "node";
36
28
  level?: "error" | "warn";
37
29
  }): {
38
- rules: Record<string, unknown>;
39
- }[];
30
+ readonly files: readonly ["**/*.{js,cjs,mjs,jsx}"];
31
+ readonly rules: Record<string, unknown>;
32
+ };
40
33
  /**
41
34
  * Recommended config for TypeScript-aware projects:
42
35
  * - Uses 'type-aware' preset to require type information for instance-member checks.
@@ -48,14 +41,14 @@ declare function recommendedTsConfig(opts?: {
48
41
  env?: "browser" | "worker" | "node";
49
42
  level?: "error" | "warn";
50
43
  }): {
51
- rules: Record<string, unknown>;
52
- }[];
44
+ readonly files: readonly ["**/*.{ts,tsx}"];
45
+ readonly rules: Record<string, unknown>;
46
+ };
53
47
  //#endregion
54
48
  //#region src/index.d.ts
55
49
  declare const _default: {
56
50
  readonly rules: Record<string, Rule.RuleModule>;
57
51
  readonly configs: {
58
- readonly baseline: typeof baselineConfigs;
59
52
  readonly recommended: typeof recommendedConfig;
60
53
  readonly "recommended-ts": typeof recommendedTsConfig;
61
54
  };