@bamboocss/eslint-plugin 1.12.0 → 1.12.1
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.cjs +3 -3
- package/dist/index.mjs +3 -3
- package/dist/utils/worker.cjs +1 -1
- package/dist/utils/worker.mjs +1 -1
- package/dist/utils--KVHU2cv.mjs +164 -0
- package/dist/utils--KVHU2cv.mjs.map +1 -0
- package/dist/utils-BbqZf2ZV.cjs +217 -0
- package/dist/utils-BbqZf2ZV.cjs.map +1 -0
- package/package.json +8 -8
- package/dist/index.d.cts +0 -1
- package/dist/index.d.mts +0 -1
- package/dist/utils/worker.d.cts +0 -54
- package/dist/utils/worker.d.mts +0 -55
- package/dist/utils-BQiAeXE_.cjs +0 -4455
- package/dist/utils-BQiAeXE_.cjs.map +0 -1
- package/dist/utils-CwjhPHe9.mjs +0 -4433
- package/dist/utils-CwjhPHe9.mjs.map +0 -1
package/dist/utils/worker.d.mts
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Generator } from "@bamboocss/generator";
|
|
2
|
-
import { ESLintUtils } from "@typescript-eslint/utils";
|
|
3
|
-
|
|
4
|
-
//#region src/utils/index.d.ts
|
|
5
|
-
type ImportResult = {
|
|
6
|
-
alias: string;
|
|
7
|
-
importMapValue?: string;
|
|
8
|
-
mod: string;
|
|
9
|
-
name: string;
|
|
10
|
-
};
|
|
11
|
-
//#endregion
|
|
12
|
-
//#region src/utils/worker.d.ts
|
|
13
|
-
type Options = {
|
|
14
|
-
configPath?: string;
|
|
15
|
-
currentFile: string;
|
|
16
|
-
};
|
|
17
|
-
type DeprecatedToken = string | {
|
|
18
|
-
category: string;
|
|
19
|
-
value: string;
|
|
20
|
-
};
|
|
21
|
-
declare function getContext(options: Options): Promise<Generator>;
|
|
22
|
-
type MatchImportResult = {
|
|
23
|
-
alias: string;
|
|
24
|
-
mod: string;
|
|
25
|
-
name: string;
|
|
26
|
-
};
|
|
27
|
-
declare function run(action: 'filterInvalidTokens', options: Options, paths: string[]): string[];
|
|
28
|
-
declare function run(action: 'isColorToken', options: Options, value: string): boolean;
|
|
29
|
-
declare function run(action: 'isColorAttribute', options: Options, attribute: string): boolean;
|
|
30
|
-
declare function run(action: 'isValidFile', options: Options): boolean;
|
|
31
|
-
declare function run(action: 'resolveShorthands', options: Options, name: string): string[] | undefined;
|
|
32
|
-
declare function run(action: 'resolveLongHand', options: Options, name: string): string | undefined;
|
|
33
|
-
declare function run(action: 'isValidProperty', options: Options, name: string, patternName?: string): boolean;
|
|
34
|
-
declare function run(action: 'matchFile', options: Options, name: string, imports: ImportResult[]): boolean;
|
|
35
|
-
declare function run(action: 'matchImports', options: Options, result: MatchImportResult): boolean;
|
|
36
|
-
declare function run(action: 'filterImports', options: Options, imports: MatchImportResult[]): MatchImportResult[];
|
|
37
|
-
declare function run(action: 'getPropCategory', options: Options, property: string): string;
|
|
38
|
-
declare function run(action: 'filterDeprecatedTokens', options: Options, tokens: DeprecatedToken[]): DeprecatedToken[];
|
|
39
|
-
declare function run(action: 'getJsxFactory', options: Options): string | undefined;
|
|
40
|
-
declare function runAsync(action: 'filterInvalidTokens', options: Options, paths: string[]): Promise<string[]>;
|
|
41
|
-
declare function runAsync(action: 'isColorToken', options: Options, value: string): Promise<boolean>;
|
|
42
|
-
declare function runAsync(action: 'isColorAttribute', options: Options, attribute: string): Promise<boolean>;
|
|
43
|
-
declare function runAsync(action: 'isValidFile', options: Options, fileName: string): Promise<string>;
|
|
44
|
-
declare function runAsync(action: 'resolveShorthands', options: Options, name: string): Promise<string[] | undefined>;
|
|
45
|
-
declare function runAsync(action: 'resolveLongHand', options: Options, name: string): Promise<string | undefined>;
|
|
46
|
-
declare function runAsync(action: 'isValidProperty', options: Options, name: string, patternName?: string): Promise<boolean>;
|
|
47
|
-
declare function runAsync(action: 'matchFile', options: Options, name: string, imports: ImportResult[]): Promise<boolean>;
|
|
48
|
-
declare function runAsync(action: 'matchImports', options: Options, result: MatchImportResult): Promise<boolean>;
|
|
49
|
-
declare function runAsync(action: 'filterImports', options: Options, imports: MatchImportResult[]): Promise<MatchImportResult[]>;
|
|
50
|
-
declare function runAsync(action: 'getPropCategory', options: Options, property: string): Promise<string>;
|
|
51
|
-
declare function runAsync(action: 'filterDeprecatedTokens', options: Options, tokens: DeprecatedToken[]): Promise<DeprecatedToken[]>;
|
|
52
|
-
declare function runAsync(action: 'getJsxFactory', options: Options): Promise<string | undefined>;
|
|
53
|
-
//#endregion
|
|
54
|
-
export { DeprecatedToken, getContext, run, runAsync };
|
|
55
|
-
//# sourceMappingURL=worker.d.mts.map
|