@kevinmarrec/eslint-config 1.11.0 → 1.12.1
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.mts +1 -2
- package/dist/index.mjs +21 -22
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -3,8 +3,7 @@ import { FlatConfigComposer } from "eslint-flat-config-utils";
|
|
|
3
3
|
|
|
4
4
|
//#region src/index.d.ts
|
|
5
5
|
type Options = Parameters<typeof antfu>[0];
|
|
6
|
-
|
|
7
|
-
declare function useConfig(options?: Options, ...userConfigs: UserConfig[]): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
|
|
6
|
+
declare function useConfig(options?: Options): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
|
|
8
7
|
declare const _default: FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
|
|
9
8
|
//#endregion
|
|
10
9
|
export { _default as default, useConfig };
|
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import defu from "defu";
|
|
|
3
3
|
import { globSync } from "tinyglobby";
|
|
4
4
|
|
|
5
5
|
//#region src/index.ts
|
|
6
|
-
function useConfig(options = {}
|
|
6
|
+
function useConfig(options = {}) {
|
|
7
7
|
const [unoConfig] = globSync("**/uno.config.ts", { absolute: true });
|
|
8
8
|
if (options.unocss !== false && unoConfig) options.unocss = true;
|
|
9
9
|
if (options.unocss) options.unocss = defu(options.unocss, {
|
|
@@ -23,29 +23,28 @@ function useConfig(options = {}, ...userConfigs) {
|
|
|
23
23
|
rules: {
|
|
24
24
|
"antfu/if-newline": ["off"],
|
|
25
25
|
"import/consistent-type-specifier-style": ["off"],
|
|
26
|
-
"import/no-duplicates": ["error", { "prefer-inline": true }]
|
|
27
|
-
"perfectionist/sort-imports": ["error", {
|
|
28
|
-
groups: [
|
|
29
|
-
["value-builtin", "type-builtin"],
|
|
30
|
-
["value-external", "type-external"],
|
|
31
|
-
["value-internal", "type-internal"],
|
|
32
|
-
[
|
|
33
|
-
"value-parent",
|
|
34
|
-
"type-parent",
|
|
35
|
-
"value-sibling",
|
|
36
|
-
"type-sibling",
|
|
37
|
-
"value-index",
|
|
38
|
-
"type-index"
|
|
39
|
-
],
|
|
40
|
-
"side-effect",
|
|
41
|
-
"ts-equals-import",
|
|
42
|
-
"unknown"
|
|
43
|
-
],
|
|
44
|
-
type: "natural"
|
|
45
|
-
}]
|
|
26
|
+
"import/no-duplicates": ["error", { "prefer-inline": true }]
|
|
46
27
|
},
|
|
47
28
|
settings: { unocss: { configPath: unoConfig } }
|
|
48
|
-
}),
|
|
29
|
+
})).override("antfu/perfectionist/setup", { rules: { "perfectionist/sort-imports": ["error", {
|
|
30
|
+
groups: [
|
|
31
|
+
["value-builtin", "type-builtin"],
|
|
32
|
+
["value-external", "type-external"],
|
|
33
|
+
["value-internal", "type-internal"],
|
|
34
|
+
[
|
|
35
|
+
"value-parent",
|
|
36
|
+
"type-parent",
|
|
37
|
+
"value-sibling",
|
|
38
|
+
"type-sibling",
|
|
39
|
+
"value-index",
|
|
40
|
+
"type-index"
|
|
41
|
+
],
|
|
42
|
+
"side-effect",
|
|
43
|
+
"ts-equals-import",
|
|
44
|
+
"unknown"
|
|
45
|
+
],
|
|
46
|
+
type: "natural"
|
|
47
|
+
}] } });
|
|
49
48
|
}
|
|
50
49
|
var src_default = useConfig();
|
|
51
50
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kevinmarrec/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.12.1",
|
|
5
5
|
"description": "Opinionated ESLint config.",
|
|
6
6
|
"author": "Kevin Marrec <kevin@marrec.io>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"eslint": ">=9.20.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@antfu/eslint-config": "^7.
|
|
34
|
-
"@unocss/eslint-plugin": "^66.6.
|
|
33
|
+
"@antfu/eslint-config": "^7.6.1",
|
|
34
|
+
"@unocss/eslint-plugin": "^66.6.4",
|
|
35
35
|
"defu": "^6.1.4",
|
|
36
36
|
"eslint-flat-config-utils": "^3.0.1",
|
|
37
|
-
"eslint-plugin-format": "^
|
|
37
|
+
"eslint-plugin-format": "^2.0.1",
|
|
38
38
|
"eslint-plugin-vuejs-accessibility": "^2.5.0",
|
|
39
39
|
"tinyglobby": "^0.2.15"
|
|
40
40
|
}
|