eslint-plugin-turbo 2.8.2-canary.1 → 2.8.2-canary.10

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,13 @@
1
+ declare const config: {
2
+ name: string;
3
+ rules: {
4
+ [x: string]: "error";
5
+ };
6
+ settings: {
7
+ turbo: {
8
+ cacheKey: number | import("../../utils/calculate-inputs").ProjectKey;
9
+ };
10
+ };
11
+ };
12
+ export default config;
13
+ //# sourceMappingURL=recommended.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recommended.d.ts","sourceRoot":"","sources":["../../../lib/configs/flat/recommended.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,MAAM;;;;;;;;;;CAUiB,CAAC;AAE9B,eAAe,MAAM,CAAC"}
@@ -0,0 +1,13 @@
1
+ declare const config: {
2
+ settings: {
3
+ turbo: {
4
+ cacheKey: number | import("../utils/calculate-inputs").ProjectKey;
5
+ };
6
+ };
7
+ plugins: string[];
8
+ rules: {
9
+ [x: string]: "error";
10
+ };
11
+ };
12
+ export default config;
13
+ //# sourceMappingURL=recommended.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recommended.d.ts","sourceRoot":"","sources":["../../lib/configs/recommended.ts"],"names":[],"mappings":"AAaA,QAAA,MAAM,MAAM;;;;;;;;;;CAMmB,CAAC;AAEhC,eAAe,MAAM,CAAC"}
@@ -0,0 +1,5 @@
1
+ declare const RULES: {
2
+ noUndeclaredEnvVars: string;
3
+ };
4
+ export { RULES };
5
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../lib/constants.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,KAAK;;CAEV,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,29 +1,6 @@
1
- import * as eslint from 'eslint';
2
- import { Rule, ESLint } from 'eslint';
3
-
4
- interface EnvironmentConfig {
5
- legacyConfig: Array<string>;
6
- env: Array<string>;
7
- passThroughEnv: Array<string> | null;
8
- dotEnv: DotEnvConfig | null;
9
- }
10
- interface DotEnvConfig {
11
- filePaths: Array<string>;
12
- hashes: Record<string, string | null>;
13
- }
14
- interface ProjectKey {
15
- global: EnvironmentConfig;
16
- globalTasks: Record<string, EnvironmentConfig>;
17
- workspaceTasks: Record<string, Record<string, EnvironmentConfig>>;
18
- }
19
-
20
- interface RuleContextWithOptions extends Rule.RuleContext {
21
- options: Array<{
22
- cwd?: string;
23
- allowList?: Array<string>;
24
- }>;
25
- }
26
-
1
+ import type { ESLint } from "eslint";
2
+ export type { RuleContextWithOptions } from "./rules/no-undeclared-env-vars";
3
+ export type { ProjectKey } from "./utils/calculate-inputs";
27
4
  declare const plugin: {
28
5
  meta: {
29
6
  name: string;
@@ -31,15 +8,15 @@ declare const plugin: {
31
8
  };
32
9
  rules: {
33
10
  [x: string]: {
34
- create: (context: RuleContextWithOptions) => eslint.Rule.RuleListener;
35
- meta: eslint.Rule.RuleMetaData;
11
+ create: (context: import("./rules/no-undeclared-env-vars").RuleContextWithOptions) => import("eslint").Rule.RuleListener;
12
+ meta: import("eslint").Rule.RuleMetaData;
36
13
  };
37
14
  };
38
15
  configs: {
39
16
  recommended: {
40
17
  settings: {
41
18
  turbo: {
42
- cacheKey: number | ProjectKey;
19
+ cacheKey: number | import("./utils/calculate-inputs").ProjectKey;
43
20
  };
44
21
  };
45
22
  plugins: string[];
@@ -57,23 +34,22 @@ declare const plugin: {
57
34
  };
58
35
  settings: {
59
36
  turbo: {
60
- cacheKey: number | ProjectKey;
37
+ cacheKey: number | import("./utils/calculate-inputs").ProjectKey;
61
38
  };
62
39
  };
63
40
  };
64
41
  };
65
42
  };
66
- declare const rules: {
43
+ export declare const rules: {
67
44
  [x: string]: {
68
- create: (context: RuleContextWithOptions) => eslint.Rule.RuleListener;
69
- meta: eslint.Rule.RuleMetaData;
45
+ create: (context: import("./rules/no-undeclared-env-vars").RuleContextWithOptions) => import("eslint").Rule.RuleListener;
46
+ meta: import("eslint").Rule.RuleMetaData;
70
47
  };
71
- };
72
- declare const configs: {
48
+ }, configs: {
73
49
  recommended: {
74
50
  settings: {
75
51
  turbo: {
76
- cacheKey: number | ProjectKey;
52
+ cacheKey: number | import("./utils/calculate-inputs").ProjectKey;
77
53
  };
78
54
  };
79
55
  plugins: string[];
@@ -91,10 +67,10 @@ declare const configs: {
91
67
  };
92
68
  settings: {
93
69
  turbo: {
94
- cacheKey: number | ProjectKey;
70
+ cacheKey: number | import("./utils/calculate-inputs").ProjectKey;
95
71
  };
96
72
  };
97
73
  };
98
74
  };
99
-
100
- export { ProjectKey, RuleContextWithOptions, configs, plugin as default, rules };
75
+ export default plugin;
76
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAOrC,YAAY,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,YAAY,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE3D,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBa,CAAC;AAE1B,eAAO,MAAQ,KAAK;;;;;GAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;CAAW,CAAC;AAEzC,eAAe,MAAM,CAAC"}