@lightwing/eslint-config 1.0.49 → 1.0.51
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 +11 -1
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +11 -1
- package/package.json +7 -3
package/dist/index.cjs
CHANGED
|
@@ -58,6 +58,16 @@ function lightwing(options = {}, ...userConfigs) {
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
];
|
|
61
|
-
|
|
61
|
+
const defaultOpts = {
|
|
62
|
+
formatters: {
|
|
63
|
+
css: true,
|
|
64
|
+
html: true,
|
|
65
|
+
markdown: "prettier"
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
return (0, import_eslint_config.antfu)({
|
|
69
|
+
...defaultOpts,
|
|
70
|
+
...options
|
|
71
|
+
}, ...lightwingConfigs, ...userConfigs);
|
|
62
72
|
}
|
|
63
73
|
var src_default = lightwing;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as _antfu_eslint_config from '@antfu/eslint-config';
|
|
2
|
+
import { OptionsConfig, TypedFlatConfigItem, Awaitable } from '@antfu/eslint-config';
|
|
3
|
+
import { FlatConfigComposer } from 'eslint-flat-config-utils';
|
|
4
|
+
import { Linter } from 'eslint';
|
|
5
|
+
|
|
6
|
+
declare function lightwing(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<any, any> | Linter.FlatConfig[]>[]): FlatConfigComposer<TypedFlatConfigItem, _antfu_eslint_config.ConfigNames>;
|
|
7
|
+
|
|
8
|
+
export { lightwing as default };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as _antfu_eslint_config from '@antfu/eslint-config';
|
|
2
|
+
import { OptionsConfig, TypedFlatConfigItem, Awaitable } from '@antfu/eslint-config';
|
|
3
|
+
import { FlatConfigComposer } from 'eslint-flat-config-utils';
|
|
4
|
+
import { Linter } from 'eslint';
|
|
5
|
+
|
|
6
|
+
declare function lightwing(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<any, any> | Linter.FlatConfig[]>[]): FlatConfigComposer<TypedFlatConfigItem, _antfu_eslint_config.ConfigNames>;
|
|
7
|
+
|
|
8
|
+
export { lightwing as default };
|
package/dist/index.js
CHANGED
|
@@ -34,7 +34,17 @@ function lightwing(options = {}, ...userConfigs) {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
];
|
|
37
|
-
|
|
37
|
+
const defaultOpts = {
|
|
38
|
+
formatters: {
|
|
39
|
+
css: true,
|
|
40
|
+
html: true,
|
|
41
|
+
markdown: "prettier"
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
return antfu({
|
|
45
|
+
...defaultOpts,
|
|
46
|
+
...options
|
|
47
|
+
}, ...lightwingConfigs, ...userConfigs);
|
|
38
48
|
}
|
|
39
49
|
var src_default = lightwing;
|
|
40
50
|
export {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightwing/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.51",
|
|
5
5
|
"description": "Lightwing ESLint config",
|
|
6
6
|
"author": "Archer Gu (https://github.com/ArcherGu/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dist"
|
|
27
27
|
],
|
|
28
28
|
"scripts": {
|
|
29
|
-
"build": "tsup src/index.ts --format esm,cjs --clean",
|
|
29
|
+
"build": "tsup src/index.ts --format esm,cjs --clean --dts",
|
|
30
30
|
"prepublishOnly": "npm run build"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
@@ -35,7 +35,11 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@antfu/eslint-config": "^2.17.0",
|
|
38
|
-
"@
|
|
38
|
+
"@eslint-react/eslint-plugin": "^1.5.11",
|
|
39
|
+
"@unocss/eslint-plugin": "^0.60.2",
|
|
40
|
+
"eslint-plugin-format": "^0.1.1",
|
|
41
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
42
|
+
"eslint-plugin-react-refresh": "^0.4.7"
|
|
39
43
|
},
|
|
40
44
|
"devDependencies": {
|
|
41
45
|
"eslint": "9.2.0",
|