@kasoa/eslint-config 0.0.14 → 0.0.16
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/base/perfectionist.d.ts.map +1 -1
- package/dist/base/perfectionist.js +16 -4
- package/dist/base/typescript-eslint.d.ts.map +1 -1
- package/dist/base/typescript-eslint.js +0 -12
- package/dist/react/jsx-a11y-x.d.ts +2 -0
- package/dist/react/jsx-a11y-x.d.ts.map +1 -0
- package/dist/react/jsx-a11y-x.js +4 -0
- package/package.json +1 -1
- package/src/base/perfectionist.ts +16 -4
- package/src/base/typescript-eslint.ts +0 -12
|
@@ -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,10 +36,12 @@ 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",
|
|
@@ -39,11 +49,13 @@ const unifiedGroups = [
|
|
|
39
49
|
];
|
|
40
50
|
const jsxGroups = [
|
|
41
51
|
"id",
|
|
52
|
+
"suffixId",
|
|
53
|
+
"key",
|
|
54
|
+
"ref",
|
|
55
|
+
"shorthand-prop",
|
|
42
56
|
"unknown",
|
|
43
57
|
"multiline-prop",
|
|
44
58
|
"timestamp",
|
|
45
|
-
"ref",
|
|
46
|
-
"shorthand-prop",
|
|
47
59
|
"callback",
|
|
48
60
|
"style",
|
|
49
61
|
"className",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript-eslint.d.ts","sourceRoot":"","sources":["../../src/base/typescript-eslint.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typescript-eslint.d.ts","sourceRoot":"","sources":["../../src/base/typescript-eslint.ts"],"names":[],"mappings":"AA8EA,eAAO,MAAM,sBAAsB,kCAwBlC,CAAC"}
|
|
@@ -71,18 +71,6 @@ const sharedConfig = {
|
|
|
71
71
|
selector: "objectLiteralProperty",
|
|
72
72
|
},
|
|
73
73
|
],
|
|
74
|
-
"@typescript-eslint/no-magic-numbers": [
|
|
75
|
-
"warn",
|
|
76
|
-
{
|
|
77
|
-
ignore: [-1, 0, 1, 2],
|
|
78
|
-
ignoreArrayIndexes: true,
|
|
79
|
-
ignoreDefaultValues: true,
|
|
80
|
-
ignoreEnums: true,
|
|
81
|
-
ignoreNumericLiteralTypes: true,
|
|
82
|
-
ignoreReadonlyClassProperties: true,
|
|
83
|
-
ignoreTypeIndexes: true,
|
|
84
|
-
},
|
|
85
|
-
],
|
|
86
74
|
},
|
|
87
75
|
};
|
|
88
76
|
export const typescriptEslintConfig = defineConfig({
|
|
@@ -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,10 +38,12 @@ 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",
|
|
@@ -42,11 +52,13 @@ const unifiedGroups = [
|
|
|
42
52
|
|
|
43
53
|
const jsxGroups = [
|
|
44
54
|
"id",
|
|
55
|
+
"suffixId",
|
|
56
|
+
"key",
|
|
57
|
+
"ref",
|
|
58
|
+
"shorthand-prop",
|
|
45
59
|
"unknown",
|
|
46
60
|
"multiline-prop",
|
|
47
61
|
"timestamp",
|
|
48
|
-
"ref",
|
|
49
|
-
"shorthand-prop",
|
|
50
62
|
"callback",
|
|
51
63
|
"style",
|
|
52
64
|
"className",
|
|
@@ -73,18 +73,6 @@ const sharedConfig = {
|
|
|
73
73
|
selector: "objectLiteralProperty",
|
|
74
74
|
},
|
|
75
75
|
],
|
|
76
|
-
"@typescript-eslint/no-magic-numbers": [
|
|
77
|
-
"warn",
|
|
78
|
-
{
|
|
79
|
-
ignore: [-1, 0, 1, 2],
|
|
80
|
-
ignoreArrayIndexes: true,
|
|
81
|
-
ignoreDefaultValues: true,
|
|
82
|
-
ignoreEnums: true,
|
|
83
|
-
ignoreNumericLiteralTypes: true,
|
|
84
|
-
ignoreReadonlyClassProperties: true,
|
|
85
|
-
ignoreTypeIndexes: true,
|
|
86
|
-
},
|
|
87
|
-
],
|
|
88
76
|
} satisfies Linter.RulesRecord,
|
|
89
77
|
};
|
|
90
78
|
|