@ncontiero/eslint-config 8.3.0-beta.0 → 8.3.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.mjs +5 -0
- package/package.json +16 -18
package/dist/index.mjs
CHANGED
|
@@ -794,6 +794,10 @@ function perfectionist(options = {}) {
|
|
|
794
794
|
"perfectionist/sort-exports": ["warn", { type: "natural" }],
|
|
795
795
|
"perfectionist/sort-imports": ["warn", {
|
|
796
796
|
customGroups: [{
|
|
797
|
+
elementNamePattern: ["^react$", "^react-(?!.*.css$).+"],
|
|
798
|
+
groupName: "react-type",
|
|
799
|
+
selector: "type"
|
|
800
|
+
}, {
|
|
797
801
|
elementNamePattern: ["^react$", "^react-(?!.*.css$).+"],
|
|
798
802
|
groupName: "react"
|
|
799
803
|
}],
|
|
@@ -801,6 +805,7 @@ function perfectionist(options = {}) {
|
|
|
801
805
|
"side-effect-style",
|
|
802
806
|
"style",
|
|
803
807
|
"type-import",
|
|
808
|
+
"react-type",
|
|
804
809
|
"type-external",
|
|
805
810
|
"type-internal",
|
|
806
811
|
[
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ncontiero/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "8.3.
|
|
5
|
-
"packageManager": "pnpm@11.5.2",
|
|
4
|
+
"version": "8.3.1",
|
|
6
5
|
"description": "Nicolas's ESLint config.",
|
|
7
6
|
"author": {
|
|
8
7
|
"name": "Nicolas Contiero",
|
|
@@ -28,20 +27,6 @@
|
|
|
28
27
|
"publishConfig": {
|
|
29
28
|
"access": "public"
|
|
30
29
|
},
|
|
31
|
-
"scripts": {
|
|
32
|
-
"build": "pnpm typegen && tsdown",
|
|
33
|
-
"dev": "pnpm inspector",
|
|
34
|
-
"build:inspector": "pnpm build && pnpm inspector build --outDir .eslint-config-inspector",
|
|
35
|
-
"typegen": "tsx scripts/typegen.ts",
|
|
36
|
-
"inspector": "eslint-config-inspector --config eslint-inspector.config.ts",
|
|
37
|
-
"test": "vitest",
|
|
38
|
-
"lint": "eslint .",
|
|
39
|
-
"lint:fix": "pnpm lint --fix",
|
|
40
|
-
"typecheck": "tsc --noEmit",
|
|
41
|
-
"check": "pnpm lint && pnpm typecheck",
|
|
42
|
-
"release": "changeset publish",
|
|
43
|
-
"prepare": "husky"
|
|
44
|
-
},
|
|
45
30
|
"peerDependencies": {
|
|
46
31
|
"@tanstack/eslint-plugin-query": ">=5.50.0",
|
|
47
32
|
"eslint": ">=9.20.0"
|
|
@@ -114,5 +99,18 @@
|
|
|
114
99
|
"nano-staged": {
|
|
115
100
|
"*": "pnpm lint:fix"
|
|
116
101
|
},
|
|
117
|
-
"prettier": "@ncontiero/prettier-config"
|
|
118
|
-
|
|
102
|
+
"prettier": "@ncontiero/prettier-config",
|
|
103
|
+
"scripts": {
|
|
104
|
+
"build": "pnpm typegen && tsdown",
|
|
105
|
+
"dev": "pnpm inspector",
|
|
106
|
+
"build:inspector": "pnpm build && pnpm inspector build --outDir .eslint-config-inspector",
|
|
107
|
+
"typegen": "tsx scripts/typegen.ts",
|
|
108
|
+
"inspector": "eslint-config-inspector --config eslint-inspector.config.ts",
|
|
109
|
+
"test": "vitest",
|
|
110
|
+
"lint": "eslint .",
|
|
111
|
+
"lint:fix": "pnpm lint --fix",
|
|
112
|
+
"typecheck": "tsc --noEmit",
|
|
113
|
+
"check": "pnpm lint && pnpm typecheck",
|
|
114
|
+
"release": "changeset publish"
|
|
115
|
+
}
|
|
116
|
+
}
|