@boehringer-ingelheim/eslint-config 9.1.1 → 9.3.0-perfectionist-v5.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/configs/base.js +0 -1
- package/configs/react.js +15 -12
- package/lib/eslint-plugin-perfectionist.js +30 -16
- package/package.json +12 -12
package/configs/base.js
CHANGED
package/configs/react.js
CHANGED
|
@@ -60,27 +60,30 @@ module.exports = defineConfig(
|
|
|
60
60
|
'perfectionist/sort-imports': [
|
|
61
61
|
'error',
|
|
62
62
|
{
|
|
63
|
-
customGroups:
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
customGroups: [
|
|
64
|
+
{
|
|
65
|
+
elementNamePattern: ['^react$'],
|
|
66
|
+
groupName: 'react',
|
|
66
67
|
},
|
|
67
|
-
|
|
68
|
-
react: ['react'],
|
|
69
|
-
},
|
|
70
|
-
},
|
|
68
|
+
],
|
|
71
69
|
groups: ['react', ...SORT_IMPORTS_GROUPS],
|
|
72
70
|
ignoreCase: true,
|
|
73
|
-
newlinesBetween: 'ignore',
|
|
74
71
|
type: 'natural',
|
|
75
72
|
},
|
|
76
73
|
],
|
|
77
74
|
'perfectionist/sort-jsx-props': [
|
|
78
75
|
'error',
|
|
79
76
|
{
|
|
80
|
-
customGroups:
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
77
|
+
customGroups: [
|
|
78
|
+
{
|
|
79
|
+
elementNamePattern: '^on.+',
|
|
80
|
+
groupName: 'callback',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
elementNamePattern: ['children', 'dangerouslySetInnerHTML', 'key', 'ref'], // Reserved props from: https://github.com/jsx-eslint/eslint-plugin-react/blob/master/lib/rules/jsx-sort-props.js#L41-L46
|
|
84
|
+
groupName: 'reservedProps',
|
|
85
|
+
},
|
|
86
|
+
],
|
|
84
87
|
groups: ['reservedProps', 'unknown', 'callback'],
|
|
85
88
|
ignoreCase: true,
|
|
86
89
|
type: 'natural',
|
|
@@ -5,18 +5,20 @@
|
|
|
5
5
|
* The following group names are available for configuration: https://eslint-plugin-perfectionist.azat.io/rules/sort-imports#groups
|
|
6
6
|
*/
|
|
7
7
|
const SORT_IMPORTS_GROUPS = [
|
|
8
|
-
['builtin', '
|
|
9
|
-
['external', '
|
|
10
|
-
['internal', '
|
|
11
|
-
['parent', '
|
|
12
|
-
'
|
|
13
|
-
['
|
|
14
|
-
'
|
|
8
|
+
['value-builtin', 'named-type-builtin'],
|
|
9
|
+
['value-external', 'named-type-external'],
|
|
10
|
+
['value-internal', 'named-type-internal'],
|
|
11
|
+
['value-parent', 'named-type-parent'],
|
|
12
|
+
['value-sibling', 'named-type-sibling'],
|
|
13
|
+
['value-index', 'named-type-index'],
|
|
14
|
+
'value-style',
|
|
15
|
+
['value-side-effect-style', 'value-side-effect'],
|
|
16
|
+
'value-ts-equals-import',
|
|
15
17
|
'unknown',
|
|
16
18
|
];
|
|
17
19
|
|
|
18
20
|
/**
|
|
19
|
-
* This is the the groups configuration of all the recommended configs by eslint-plugin-perfectionist.
|
|
21
|
+
* This is the the default groups configuration of all the recommended configs by eslint-plugin-perfectionist.
|
|
20
22
|
* This array can be used to reconfigure some options of the perfectionist/sort-classes rule without
|
|
21
23
|
* overwriting the groups configuration of this rule.
|
|
22
24
|
* This config can be found here:
|
|
@@ -25,19 +27,31 @@ const SORT_IMPORTS_GROUPS = [
|
|
|
25
27
|
*/
|
|
26
28
|
const SORT_CLASSES_GROUPS = [
|
|
27
29
|
'index-signature',
|
|
28
|
-
'static-property',
|
|
29
|
-
'
|
|
30
|
-
'property',
|
|
31
|
-
'
|
|
32
|
-
'static-
|
|
33
|
-
'private-method',
|
|
34
|
-
'
|
|
30
|
+
['static-property', 'static-accessor-property'],
|
|
31
|
+
['static-get-method', 'static-set-method'],
|
|
32
|
+
['protected-static-property', 'protected-static-accessor-property'],
|
|
33
|
+
['protected-static-get-method', 'protected-static-set-method'],
|
|
34
|
+
['private-static-property', 'private-static-accessor-property'],
|
|
35
|
+
['private-static-get-method', 'private-static-set-method'],
|
|
36
|
+
'static-block',
|
|
37
|
+
['property', 'accessor-property'],
|
|
35
38
|
['get-method', 'set-method'],
|
|
39
|
+
['protected-property', 'protected-accessor-property'],
|
|
40
|
+
['protected-get-method', 'protected-set-method'],
|
|
41
|
+
['private-property', 'private-accessor-property'],
|
|
42
|
+
['private-get-method', 'private-set-method'],
|
|
43
|
+
'constructor',
|
|
44
|
+
['static-method', 'static-function-property'],
|
|
45
|
+
['protected-static-method', 'protected-static-function-property'],
|
|
46
|
+
['private-static-method', 'private-static-function-property'],
|
|
47
|
+
['method', 'function-property'],
|
|
48
|
+
['protected-method', 'protected-function-property'],
|
|
49
|
+
['private-method', 'private-function-property'],
|
|
36
50
|
'unknown',
|
|
37
51
|
];
|
|
38
52
|
|
|
39
53
|
/**
|
|
40
|
-
*
|
|
54
|
+
* Customized configuration to configure the perfectionist/sort-intersection-types rule.
|
|
41
55
|
* The following group names are available for configuration: https://perfectionist.dev/rules/sort-intersection-types#groups
|
|
42
56
|
*/
|
|
43
57
|
const SORT_INTERSECTION_TYPES_GROUPS = [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boehringer-ingelheim/eslint-config",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.3.0-perfectionist-v5.1",
|
|
4
4
|
"description": "Shared eslint configuration used at Boehringer Ingelheim for code styling",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"boehringer",
|
|
@@ -41,30 +41,30 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@eslint/compat": "^2.0.0",
|
|
44
|
-
"@eslint/js": "^9.39.
|
|
45
|
-
"@next/eslint-plugin-next": "^16.
|
|
44
|
+
"@eslint/js": "^9.39.2",
|
|
45
|
+
"@next/eslint-plugin-next": "^16.1.1",
|
|
46
46
|
"eslint-config-prettier": "^10.1.8",
|
|
47
47
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
48
48
|
"eslint-plugin-import": "^2.32.0",
|
|
49
49
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
50
|
-
"eslint-plugin-perfectionist": "^
|
|
51
|
-
"eslint-plugin-playwright": "^2.
|
|
50
|
+
"eslint-plugin-perfectionist": "^5.3.1",
|
|
51
|
+
"eslint-plugin-playwright": "^2.4.0",
|
|
52
52
|
"eslint-plugin-react": "^7.37.5",
|
|
53
53
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
54
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
54
|
+
"eslint-plugin-react-refresh": "^0.4.26",
|
|
55
55
|
"eslint-plugin-sonarjs": "^3.0.5",
|
|
56
|
-
"globals": "^
|
|
56
|
+
"globals": "^17.0.0",
|
|
57
57
|
"is-ci": "^4.1.0",
|
|
58
|
-
"typescript-eslint": "^8.
|
|
58
|
+
"typescript-eslint": "^8.52.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@boehringer-ingelheim/prettier-config": "2.0.0",
|
|
62
|
-
"@commitlint/cli": "20.
|
|
63
|
-
"@commitlint/config-conventional": "20.
|
|
64
|
-
"@commitlint/types": "20.
|
|
62
|
+
"@commitlint/cli": "20.3.0",
|
|
63
|
+
"@commitlint/config-conventional": "20.3.0",
|
|
64
|
+
"@commitlint/types": "20.2.0",
|
|
65
65
|
"dotenv-cli": "11.0.0",
|
|
66
66
|
"husky": "9.1.7",
|
|
67
|
-
"prettier": "3.7.
|
|
67
|
+
"prettier": "3.7.4",
|
|
68
68
|
"semantic-release": "25.0.2"
|
|
69
69
|
}
|
|
70
70
|
}
|