@siberiacancode/eslint 2.16.8 → 2.16.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.
- package/dist/cjs/index.cjs +137120 -3
- package/dist/cjs/index.d.cts +20 -4
- package/dist/esm/index.d.mts +20 -4
- package/dist/esm/index.mjs +137149 -3
- package/package.json +1 -1
package/dist/cjs/index.d.cts
CHANGED
|
@@ -1,14 +1,30 @@
|
|
|
1
|
-
import { Awaitable, ConfigNames, OptionsConfig, OptionsTypescript, TypedFlatConfigItem } from "@antfu/eslint-config";
|
|
1
|
+
import { Awaitable, ConfigNames, OptionsConfig, OptionsOverrides, OptionsTypescript, TypedFlatConfigItem } from "@antfu/eslint-config";
|
|
2
2
|
import { Linter } from "eslint";
|
|
3
3
|
import { FlatConfigComposer } from "eslint-flat-config-utils";
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
|
6
|
+
interface OptionsPlaywright extends OptionsOverrides {
|
|
7
|
+
patterns?: string[];
|
|
8
|
+
}
|
|
9
|
+
interface TailwindSettings {
|
|
10
|
+
detectComponentClasses?: boolean;
|
|
11
|
+
entryPoint?: string;
|
|
12
|
+
messageStyle?: 'compact' | 'raw' | 'visual';
|
|
13
|
+
rootFontSize?: number;
|
|
14
|
+
selectors?: unknown[];
|
|
15
|
+
tailwindConfig?: string;
|
|
16
|
+
tsconfig?: string;
|
|
17
|
+
}
|
|
18
|
+
interface OptionsTailwind extends OptionsOverrides {
|
|
19
|
+
settings?: TailwindSettings;
|
|
20
|
+
}
|
|
6
21
|
type EslintOptions = OptionsConfig & TypedFlatConfigItem & {
|
|
7
|
-
|
|
8
|
-
|
|
22
|
+
jsxA11y?: boolean;
|
|
23
|
+
playwright?: boolean | OptionsPlaywright;
|
|
24
|
+
tailwind?: boolean | OptionsTailwind;
|
|
9
25
|
typescript?: boolean | 'engine' | OptionsTypescript;
|
|
10
26
|
};
|
|
11
27
|
type Eslint = (options?: EslintOptions, ...userConfigs: Awaitable<FlatConfigComposer<any, any> | Linter.Config[] | TypedFlatConfigItem | TypedFlatConfigItem[]>[]) => FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
|
|
12
28
|
declare const eslint: Eslint;
|
|
13
29
|
//#endregion
|
|
14
|
-
export { Eslint, eslint };
|
|
30
|
+
export { Eslint, OptionsPlaywright, OptionsTailwind, TailwindSettings, eslint };
|
package/dist/esm/index.d.mts
CHANGED
|
@@ -1,14 +1,30 @@
|
|
|
1
|
-
import { Awaitable, ConfigNames, OptionsConfig, OptionsTypescript, TypedFlatConfigItem } from "@antfu/eslint-config";
|
|
1
|
+
import { Awaitable, ConfigNames, OptionsConfig, OptionsOverrides, OptionsTypescript, TypedFlatConfigItem } from "@antfu/eslint-config";
|
|
2
2
|
import { Linter } from "eslint";
|
|
3
3
|
import { FlatConfigComposer } from "eslint-flat-config-utils";
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
|
6
|
+
interface OptionsPlaywright extends OptionsOverrides {
|
|
7
|
+
patterns?: string[];
|
|
8
|
+
}
|
|
9
|
+
interface TailwindSettings {
|
|
10
|
+
detectComponentClasses?: boolean;
|
|
11
|
+
entryPoint?: string;
|
|
12
|
+
messageStyle?: 'compact' | 'raw' | 'visual';
|
|
13
|
+
rootFontSize?: number;
|
|
14
|
+
selectors?: unknown[];
|
|
15
|
+
tailwindConfig?: string;
|
|
16
|
+
tsconfig?: string;
|
|
17
|
+
}
|
|
18
|
+
interface OptionsTailwind extends OptionsOverrides {
|
|
19
|
+
settings?: TailwindSettings;
|
|
20
|
+
}
|
|
6
21
|
type EslintOptions = OptionsConfig & TypedFlatConfigItem & {
|
|
7
|
-
|
|
8
|
-
|
|
22
|
+
jsxA11y?: boolean;
|
|
23
|
+
playwright?: boolean | OptionsPlaywright;
|
|
24
|
+
tailwind?: boolean | OptionsTailwind;
|
|
9
25
|
typescript?: boolean | 'engine' | OptionsTypescript;
|
|
10
26
|
};
|
|
11
27
|
type Eslint = (options?: EslintOptions, ...userConfigs: Awaitable<FlatConfigComposer<any, any> | Linter.Config[] | TypedFlatConfigItem | TypedFlatConfigItem[]>[]) => FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
|
|
12
28
|
declare const eslint: Eslint;
|
|
13
29
|
//#endregion
|
|
14
|
-
export { Eslint, eslint };
|
|
30
|
+
export { Eslint, OptionsPlaywright, OptionsTailwind, TailwindSettings, eslint };
|