@curev/eslint-config 0.4.2 → 0.5.0

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,10 +1,12 @@
1
- import * as _antfu_eslint_config from '@antfu/eslint-config';
2
- import { OptionsConfig, TypedFlatConfigItem } from '@antfu/eslint-config';
1
+ import { OptionsConfig, TypedFlatConfigItem, ConfigNames } from '@antfu/eslint-config';
3
2
  import { Linter } from 'eslint';
4
3
  import { Awaitable, FlatConfigComposer } from 'eslint-flat-config-utils';
5
4
 
6
5
  type CurevOptions = OptionsConfig & Omit<TypedFlatConfigItem, "files">;
6
+ type CurevUserConfig = Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<any, any> | Linter.Config[]>;
7
+ type CurevConfigNames = ConfigNames;
8
+ type CurevConfigs = FlatConfigComposer<TypedFlatConfigItem, CurevConfigNames>;
7
9
  declare const defaultConfig: CurevOptions;
8
- declare function curev(options?: CurevOptions, ...userConfigs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<any, any> | Linter.Config[]>[]): FlatConfigComposer<TypedFlatConfigItem, _antfu_eslint_config.ConfigNames>;
10
+ declare function curev(options?: CurevOptions, ...userConfigs: CurevUserConfig[]): CurevConfigs;
9
11
 
10
- export { type CurevOptions, curev, curev as default, defaultConfig };
12
+ export { type CurevConfigNames, type CurevConfigs, type CurevOptions, type CurevUserConfig, curev, curev as default, defaultConfig };
package/dist/index.d.ts CHANGED
@@ -1,10 +1,12 @@
1
- import * as _antfu_eslint_config from '@antfu/eslint-config';
2
- import { OptionsConfig, TypedFlatConfigItem } from '@antfu/eslint-config';
1
+ import { OptionsConfig, TypedFlatConfigItem, ConfigNames } from '@antfu/eslint-config';
3
2
  import { Linter } from 'eslint';
4
3
  import { Awaitable, FlatConfigComposer } from 'eslint-flat-config-utils';
5
4
 
6
5
  type CurevOptions = OptionsConfig & Omit<TypedFlatConfigItem, "files">;
6
+ type CurevUserConfig = Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<any, any> | Linter.Config[]>;
7
+ type CurevConfigNames = ConfigNames;
8
+ type CurevConfigs = FlatConfigComposer<TypedFlatConfigItem, CurevConfigNames>;
7
9
  declare const defaultConfig: CurevOptions;
8
- declare function curev(options?: CurevOptions, ...userConfigs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<any, any> | Linter.Config[]>[]): FlatConfigComposer<TypedFlatConfigItem, _antfu_eslint_config.ConfigNames>;
10
+ declare function curev(options?: CurevOptions, ...userConfigs: CurevUserConfig[]): CurevConfigs;
9
11
 
10
- export { type CurevOptions, curev, curev as default, defaultConfig };
12
+ export { type CurevConfigNames, type CurevConfigs, type CurevOptions, type CurevUserConfig, curev, curev as default, defaultConfig };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@curev/eslint-config",
3
3
  "type": "module",
4
- "version": "0.4.2",
4
+ "version": "0.5.0",
5
5
  "author": "Chizuki<chizukicn@outlook.com> (https://github.com/chizukicn/)",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/curev/eslint-config",
@@ -20,32 +20,33 @@
20
20
  "eslint": "^9.10.0"
21
21
  },
22
22
  "dependencies": {
23
- "@antfu/eslint-config": "^3.14.0",
23
+ "@antfu/eslint-config": "^4.8.1",
24
24
  "defu": "^6.1.4"
25
25
  },
26
26
  "devDependencies": {
27
- "@antfu/ni": "^23.2.0",
28
- "@eslint/config-inspector": "^1.0.0",
27
+ "@antfu/ni": "^23.3.1",
28
+ "@eslint/config-inspector": "^1.0.2",
29
29
  "@types/fs-extra": "^11.0.4",
30
- "@types/node": "^20.17.13",
31
- "bumpp": "^9.10.1",
32
- "eslint": "^9.18.0",
30
+ "@types/node": "^20.17.24",
31
+ "bumpp": "^10.0.3",
32
+ "eslint": "^9.22.0",
33
+ "eslint-flat-config-utils": "^2.0.1",
33
34
  "esno": "^4.8.0",
34
35
  "execa": "^9.5.2",
35
36
  "fast-glob": "^3.3.3",
36
- "fs-extra": "^11.2.0",
37
- "lint-staged": "^15.3.0",
37
+ "fs-extra": "^11.3.0",
38
+ "lint-staged": "^15.4.3",
38
39
  "simple-git-hooks": "^2.11.1",
39
- "taze": "^18.2.0",
40
- "tsup": "^8.3.5",
40
+ "taze": "^18.7.1",
41
+ "tsup": "^8.4.0",
41
42
  "typescript": "^5.7.3",
42
- "vitest": "^2.1.8"
43
+ "vitest": "^3.0.8"
43
44
  },
44
45
  "resolutions": {
45
46
  "@eslint-community/eslint-utils": "^4.4.1",
46
- "@typescript-eslint/utils": "^8.20.0",
47
- "eslint": "^9.18.0",
48
- "tsx": "^4.19.2"
47
+ "@typescript-eslint/utils": "^8.26.0",
48
+ "eslint": "^9.22.0",
49
+ "tsx": "^4.19.3"
49
50
  },
50
51
  "simple-git-hooks": {
51
52
  "pre-commit": "npx lint-staged"