@tofrankie/eslint 0.0.19 → 0.0.21
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/CHANGELOG.md +19 -2
- package/README.md +107 -30
- package/dist/index.cjs +439 -256
- package/dist/index.d.cts +12 -13
- package/dist/index.d.mts +12 -13
- package/dist/index.mjs +432 -257
- package/package.json +20 -4
package/dist/index.d.cts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { OptionsConfig as
|
|
1
|
+
import antfu, { OptionsConfig, TypedFlatConfigItem, TypedFlatConfigItem as TypedFlatConfigItem$1 } from "@antfu/eslint-config";
|
|
2
|
+
export * from "@antfu/eslint-config";
|
|
2
3
|
|
|
3
|
-
//#region src/types.d.ts
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
//#region src/config.d.ts
|
|
7
|
-
type AntfuOptions = OptionsConfig & Omit<TypedFlatConfigItem, 'files'>;
|
|
4
|
+
//#region src/types/define-config.d.ts
|
|
5
|
+
type AntfuOptions = OptionsConfig & Omit<TypedFlatConfigItem$1, 'files'>;
|
|
6
|
+
type Composer = ReturnType<typeof antfu>;
|
|
8
7
|
type UserFlatConfig = Parameters<typeof antfu>[1];
|
|
9
|
-
type Config = ReturnType<typeof antfu>;
|
|
10
|
-
/**
|
|
11
|
-
* @param antfuOptions Configures for antfu's config.
|
|
12
|
-
* @param userFlatConfigs From the second arguments they are ESLint Flat Configs, you can have multiple configs.
|
|
13
|
-
*/
|
|
14
|
-
declare function defineConfig(antfuOptions?: AntfuOptions, ...userFlatConfigs: UserFlatConfig[]): Config;
|
|
15
8
|
//#endregion
|
|
16
|
-
|
|
9
|
+
//#region src/define-config.d.ts
|
|
10
|
+
declare function defineConfig(antfuOptions?: AntfuOptions, ...userFlatConfigs: UserFlatConfig[]): Composer;
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/language-options/miniprogram.d.ts
|
|
13
|
+
declare const MINIPROGRAM_LANGUAGE_OPTIONS: NonNullable<TypedFlatConfigItem['languageOptions']>;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { MINIPROGRAM_LANGUAGE_OPTIONS, defineConfig };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { OptionsConfig as
|
|
1
|
+
import antfu, { OptionsConfig, TypedFlatConfigItem, TypedFlatConfigItem as TypedFlatConfigItem$1 } from "@antfu/eslint-config";
|
|
2
|
+
export * from "@antfu/eslint-config";
|
|
2
3
|
|
|
3
|
-
//#region src/types.d.ts
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
//#region src/config.d.ts
|
|
7
|
-
type AntfuOptions = OptionsConfig & Omit<TypedFlatConfigItem, 'files'>;
|
|
4
|
+
//#region src/types/define-config.d.ts
|
|
5
|
+
type AntfuOptions = OptionsConfig & Omit<TypedFlatConfigItem$1, 'files'>;
|
|
6
|
+
type Composer = ReturnType<typeof antfu>;
|
|
8
7
|
type UserFlatConfig = Parameters<typeof antfu>[1];
|
|
9
|
-
type Config = ReturnType<typeof antfu>;
|
|
10
|
-
/**
|
|
11
|
-
* @param antfuOptions Configures for antfu's config.
|
|
12
|
-
* @param userFlatConfigs From the second arguments they are ESLint Flat Configs, you can have multiple configs.
|
|
13
|
-
*/
|
|
14
|
-
declare function defineConfig(antfuOptions?: AntfuOptions, ...userFlatConfigs: UserFlatConfig[]): Config;
|
|
15
8
|
//#endregion
|
|
16
|
-
|
|
9
|
+
//#region src/define-config.d.ts
|
|
10
|
+
declare function defineConfig(antfuOptions?: AntfuOptions, ...userFlatConfigs: UserFlatConfig[]): Composer;
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/language-options/miniprogram.d.ts
|
|
13
|
+
declare const MINIPROGRAM_LANGUAGE_OPTIONS: NonNullable<TypedFlatConfigItem['languageOptions']>;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { MINIPROGRAM_LANGUAGE_OPTIONS, defineConfig };
|