@ririd/eslint-config 1.1.0 → 1.2.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.cjs +1 -1
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { OptionsConfig,
|
|
1
|
+
import { OptionsConfig, TypedFlatConfigItem, antfu } from '@antfu/eslint-config';
|
|
2
2
|
export * from '@antfu/eslint-config';
|
|
3
3
|
|
|
4
4
|
interface CustomConfig {
|
|
5
5
|
all?: boolean;
|
|
6
6
|
next?: boolean;
|
|
7
7
|
}
|
|
8
|
+
type UserConfigItem = Parameters<typeof antfu>[1];
|
|
9
|
+
type Configs = ReturnType<typeof antfu>;
|
|
8
10
|
/**
|
|
9
11
|
* 构建一个 ESLint 平面配置项数组。
|
|
10
12
|
*/
|
|
11
|
-
declare function ririd(options?: OptionsConfig & CustomConfig &
|
|
13
|
+
declare function ririd(options?: OptionsConfig & CustomConfig & TypedFlatConfigItem, ...userConfigs: UserConfigItem[]): Configs;
|
|
12
14
|
|
|
13
15
|
export { ririd as default, ririd };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { OptionsConfig,
|
|
1
|
+
import { OptionsConfig, TypedFlatConfigItem, antfu } from '@antfu/eslint-config';
|
|
2
2
|
export * from '@antfu/eslint-config';
|
|
3
3
|
|
|
4
4
|
interface CustomConfig {
|
|
5
5
|
all?: boolean;
|
|
6
6
|
next?: boolean;
|
|
7
7
|
}
|
|
8
|
+
type UserConfigItem = Parameters<typeof antfu>[1];
|
|
9
|
+
type Configs = ReturnType<typeof antfu>;
|
|
8
10
|
/**
|
|
9
11
|
* 构建一个 ESLint 平面配置项数组。
|
|
10
12
|
*/
|
|
11
|
-
declare function ririd(options?: OptionsConfig & CustomConfig &
|
|
13
|
+
declare function ririd(options?: OptionsConfig & CustomConfig & TypedFlatConfigItem, ...userConfigs: UserConfigItem[]): Configs;
|
|
12
14
|
|
|
13
15
|
export { ririd as default, ririd };
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ririd/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"packageManager": "pnpm@8.12.1",
|
|
6
6
|
"author": "Daydreamer Riri <Daydreamerriri@outloot.com> (https://github.com/Daydreamer-riri/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"eslint": ">=8.0.0"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@antfu/eslint-config": "^2.
|
|
28
|
+
"@antfu/eslint-config": "^2.12.2",
|
|
29
29
|
"@next/eslint-plugin-next": "^14.1.4",
|
|
30
30
|
"eslint-plugin-format": "^0.1.0",
|
|
31
31
|
"eslint-plugin-react": "^7.34.1",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"rimraf": "^5.0.5",
|
|
41
41
|
"tsup": "^8.0.2",
|
|
42
42
|
"typescript": "^5.3.3",
|
|
43
|
-
"@ririd/eslint-config": "1.
|
|
43
|
+
"@ririd/eslint-config": "1.2.0"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "tsup src/index.ts --format esm,cjs --clean --dts",
|