@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/dist/index.d.cts CHANGED
@@ -1,16 +1,15 @@
1
- import { OptionsConfig as OptionsConfig$1, TypedFlatConfigItem, antfu } from "@antfu/eslint-config";
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
- interface OptionsConfig extends OptionsConfig$1 {}
5
- //#endregion
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
- export { OptionsConfig, defineConfig };
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 OptionsConfig$1, TypedFlatConfigItem, antfu } from "@antfu/eslint-config";
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
- interface OptionsConfig extends OptionsConfig$1 {}
5
- //#endregion
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
- export { OptionsConfig, defineConfig };
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 };