@kasoa/eslint-config 0.0.13 → 0.0.15
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"perfectionist.d.ts","sourceRoot":"","sources":["../../src/base/perfectionist.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"perfectionist.d.ts","sourceRoot":"","sources":["../../src/base/perfectionist.ts"],"names":[],"mappings":"AAuEA,eAAO,MAAM,mBAAmB,kCAqE9B,CAAC;AAEH,eAAO,MAAM,sBAAsB,kCAcjC,CAAC"}
|
|
@@ -2,9 +2,17 @@ import perfectionist from "eslint-plugin-perfectionist";
|
|
|
2
2
|
import { defineConfig } from "eslint/config";
|
|
3
3
|
const unifiedCustomGroups = [
|
|
4
4
|
{
|
|
5
|
-
elementNamePattern: "
|
|
5
|
+
elementNamePattern: "^id$",
|
|
6
6
|
groupName: "id",
|
|
7
7
|
},
|
|
8
|
+
{
|
|
9
|
+
elementNamePattern: "(?:^_id$|^uuid$|Id$)",
|
|
10
|
+
groupName: "suffixId",
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
elementNamePattern: "^key$",
|
|
14
|
+
groupName: "key",
|
|
15
|
+
},
|
|
8
16
|
{
|
|
9
17
|
elementNamePattern: "(?:At$|_at$)",
|
|
10
18
|
groupName: "timestamp",
|
|
@@ -28,15 +36,30 @@ const unifiedCustomGroups = [
|
|
|
28
36
|
];
|
|
29
37
|
const unifiedGroups = [
|
|
30
38
|
"id",
|
|
39
|
+
"suffixId",
|
|
40
|
+
"key",
|
|
41
|
+
"ref",
|
|
31
42
|
"unknown",
|
|
32
43
|
"multiline-member",
|
|
33
44
|
"timestamp",
|
|
34
|
-
"ref",
|
|
35
45
|
"method",
|
|
36
46
|
"callback",
|
|
37
47
|
"style",
|
|
38
48
|
"className",
|
|
39
49
|
];
|
|
50
|
+
const jsxGroups = [
|
|
51
|
+
"id",
|
|
52
|
+
"suffixId",
|
|
53
|
+
"key",
|
|
54
|
+
"ref",
|
|
55
|
+
"shorthand-prop",
|
|
56
|
+
"unknown",
|
|
57
|
+
"multiline-prop",
|
|
58
|
+
"timestamp",
|
|
59
|
+
"callback",
|
|
60
|
+
"style",
|
|
61
|
+
"className",
|
|
62
|
+
];
|
|
40
63
|
const baseConfig = {
|
|
41
64
|
order: "asc",
|
|
42
65
|
type: "natural",
|
|
@@ -121,7 +144,7 @@ export const perfectionistJsxConfig = defineConfig({
|
|
|
121
144
|
{
|
|
122
145
|
...baseConfig,
|
|
123
146
|
customGroups: unifiedCustomGroups,
|
|
124
|
-
groups:
|
|
147
|
+
groups: jsxGroups,
|
|
125
148
|
},
|
|
126
149
|
],
|
|
127
150
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx-a11y-x.d.ts","sourceRoot":"","sources":["../../src/react/jsx-a11y-x.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,cAAc,kCAE1B,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,9 +3,17 @@ import { defineConfig } from "eslint/config";
|
|
|
3
3
|
|
|
4
4
|
const unifiedCustomGroups = [
|
|
5
5
|
{
|
|
6
|
-
elementNamePattern: "
|
|
6
|
+
elementNamePattern: "^id$",
|
|
7
7
|
groupName: "id",
|
|
8
8
|
},
|
|
9
|
+
{
|
|
10
|
+
elementNamePattern: "(?:^_id$|^uuid$|Id$)",
|
|
11
|
+
groupName: "suffixId",
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
elementNamePattern: "^key$",
|
|
15
|
+
groupName: "key",
|
|
16
|
+
},
|
|
9
17
|
{
|
|
10
18
|
elementNamePattern: "(?:At$|_at$)",
|
|
11
19
|
groupName: "timestamp",
|
|
@@ -30,16 +38,32 @@ const unifiedCustomGroups = [
|
|
|
30
38
|
|
|
31
39
|
const unifiedGroups = [
|
|
32
40
|
"id",
|
|
41
|
+
"suffixId",
|
|
42
|
+
"key",
|
|
43
|
+
"ref",
|
|
33
44
|
"unknown",
|
|
34
45
|
"multiline-member",
|
|
35
46
|
"timestamp",
|
|
36
|
-
"ref",
|
|
37
47
|
"method",
|
|
38
48
|
"callback",
|
|
39
49
|
"style",
|
|
40
50
|
"className",
|
|
41
51
|
];
|
|
42
52
|
|
|
53
|
+
const jsxGroups = [
|
|
54
|
+
"id",
|
|
55
|
+
"suffixId",
|
|
56
|
+
"key",
|
|
57
|
+
"ref",
|
|
58
|
+
"shorthand-prop",
|
|
59
|
+
"unknown",
|
|
60
|
+
"multiline-prop",
|
|
61
|
+
"timestamp",
|
|
62
|
+
"callback",
|
|
63
|
+
"style",
|
|
64
|
+
"className",
|
|
65
|
+
];
|
|
66
|
+
|
|
43
67
|
const baseConfig = {
|
|
44
68
|
order: "asc" as const,
|
|
45
69
|
type: "natural" as const,
|
|
@@ -126,7 +150,7 @@ export const perfectionistJsxConfig = defineConfig({
|
|
|
126
150
|
{
|
|
127
151
|
...baseConfig,
|
|
128
152
|
customGroups: unifiedCustomGroups,
|
|
129
|
-
groups:
|
|
153
|
+
groups: jsxGroups,
|
|
130
154
|
},
|
|
131
155
|
],
|
|
132
156
|
},
|