@kasoa/eslint-config 0.0.14 → 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":"AA2DA,eAAO,MAAM,mBAAmB,kCAqE9B,CAAC;AAEH,eAAO,MAAM,sBAAsB,kCAcjC,CAAC"}
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: "(?:^id$|^_id$|^key$|^uuid$|Id$)",
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",
@@ -0,0 +1,2 @@
1
+ export declare const jsxA11yXConfig: import("eslint/config").Config[];
2
+ //# sourceMappingURL=jsx-a11y-x.d.ts.map
@@ -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"}
@@ -0,0 +1,4 @@
1
+ // @ts-expect-error - eslint-plugin-jsx-a11y-x is not typed
2
+ import jsxA11yX from "eslint-plugin-jsx-a11y-x";
3
+ import { defineConfig } from "eslint/config";
4
+ export const jsxA11yXConfig = defineConfig(jsxA11yX.flatConfigs.strict);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kasoa/eslint-config",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Kasoa's ESLint config",
@@ -3,9 +3,17 @@ import { defineConfig } from "eslint/config";
3
3
 
4
4
  const unifiedCustomGroups = [
5
5
  {
6
- elementNamePattern: "(?:^id$|^_id$|^key$|^uuid$|Id$)",
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",