@icebreakers/eslint-config 1.6.28 → 1.6.30

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/index.d.ts ADDED
@@ -0,0 +1,54 @@
1
+ import type {
2
+ Awaitable,
3
+ ConfigNames,
4
+ OptionsConfig,
5
+ TypedFlatConfigItem,
6
+ } from '@antfu/eslint-config'
7
+ import type { Linter } from 'eslint'
8
+ import type { FlatConfigComposer } from 'eslint-flat-config-utils'
9
+
10
+ export interface TailwindcssOption {
11
+ entryPoint?: string
12
+ tailwindConfig?: string
13
+ }
14
+
15
+ export type TailwindcssConfig = boolean | TailwindcssOption
16
+
17
+ export type UserDefinedOptions = OptionsConfig & TypedFlatConfigItem & {
18
+ tailwindcss?: TailwindcssConfig
19
+ mdx?: boolean
20
+ a11y?: boolean
21
+ nestjs?: boolean
22
+ query?: boolean
23
+ ionic?: boolean
24
+ weapp?: boolean
25
+ }
26
+
27
+ export type UserConfigItem = Awaitable<
28
+ | TypedFlatConfigItem
29
+ | TypedFlatConfigItem[]
30
+ | FlatConfigComposer<any, any>
31
+ | Linter.Config[]
32
+ >
33
+
34
+ export declare function getPresets(
35
+ options?: UserDefinedOptions,
36
+ mode?: 'legacy',
37
+ ): [UserDefinedOptions, ...UserConfigItem[]]
38
+
39
+ export declare function icebreaker(
40
+ options?: UserDefinedOptions,
41
+ ...userConfigs: UserConfigItem[]
42
+ ): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>
43
+
44
+ export declare function icebreakerLegacy(
45
+ options?: UserDefinedOptions,
46
+ ...userConfigs: UserConfigItem[]
47
+ ): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>
48
+
49
+ export type {
50
+ ConfigNames,
51
+ FlatConfigComposer,
52
+ OptionsConfig,
53
+ TypedFlatConfigItem,
54
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@icebreakers/eslint-config",
3
3
  "type": "module",
4
- "version": "1.6.28",
4
+ "version": "1.6.30",
5
5
  "description": "ESLint preset from Icebreaker's dev-configs",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -20,7 +20,7 @@
20
20
  ],
21
21
  "exports": {
22
22
  ".": {
23
- "types": "./dist/index.d.ts",
23
+ "types": "./index.d.ts",
24
24
  "import": "./dist/index.js",
25
25
  "require": "./dist/index.cjs"
26
26
  },
@@ -28,17 +28,10 @@
28
28
  },
29
29
  "main": "./dist/index.cjs",
30
30
  "module": "./dist/index.js",
31
- "types": "./dist/index.d.ts",
32
- "typesVersions": {
33
- "*": {
34
- "*": [
35
- "./dist/*",
36
- "./dist/index.d.ts"
37
- ]
38
- }
39
- },
31
+ "types": "./index.d.ts",
40
32
  "files": [
41
- "dist"
33
+ "dist",
34
+ "index.d.ts"
42
35
  ],
43
36
  "peerDependencies": {
44
37
  "eslint-plugin-pnpm": "^1.4.3"
@@ -49,8 +42,8 @@
49
42
  }
50
43
  },
51
44
  "dependencies": {
52
- "@antfu/eslint-config": "7.7.0",
53
- "@eslint-react/eslint-plugin": "^2.13.0",
45
+ "@antfu/eslint-config": "7.7.2",
46
+ "@eslint-react/eslint-plugin": "^3.0.0",
54
47
  "@next/eslint-plugin-next": "^16.1.6",
55
48
  "@tanstack/eslint-plugin-query": "^5.91.4",
56
49
  "eslint-plugin-better-tailwindcss": "^4.3.2",
@@ -69,10 +62,17 @@
69
62
  "access": "public",
70
63
  "registry": "https://registry.npmjs.org"
71
64
  },
65
+ "tsd": {
66
+ "directory": "test-d",
67
+ "compilerOptions": {
68
+ "skipLibCheck": true
69
+ }
70
+ },
72
71
  "scripts": {
73
- "dev": "tsup --watch --sourcemap",
74
- "build": "tsup",
72
+ "dev": "tsdown --watch --sourcemap",
73
+ "build": "tsdown",
75
74
  "test": "vitest run",
75
+ "test:types": "tsd",
76
76
  "test:dev": "vitest",
77
77
  "release": "pnpm publish",
78
78
  "sync": "cnpm sync @icebreakers/eslint-config",