@boehringer-ingelheim/eslint-config 3.1.0-next.1 → 4.0.0-next.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/base/index.js CHANGED
@@ -41,7 +41,9 @@ module.exports = {
41
41
  rules: {
42
42
  // @typescript-eslint: https://github.com/typescript-eslint/typescript-eslint/tree/main/packages/eslint-plugin/docs/rules
43
43
  "@typescript-eslint/adjacent-overload-signatures": "off", // disabled due to conflict with eslint-plugin-perfectionist
44
+ "@typescript-eslint/consistent-type-imports": "error",
44
45
  "@typescript-eslint/no-floating-promises": ["error", { ignoreVoid: true }],
46
+ "@typescript-eslint/no-import-type-side-effects": "error",
45
47
  "@typescript-eslint/no-misused-promises": [
46
48
  "error",
47
49
  {
@@ -83,6 +85,7 @@ module.exports = {
83
85
  "sort-keys": "off", // disabled due to conflict with eslint-plugin-perfectionist
84
86
 
85
87
  // eslint-plugin-import: https://github.com/import-js/eslint-plugin-import/tree/main/docs/rules
88
+ "import/consistent-type-specifier-style": ["error", "prefer-top-level"],
86
89
  "import/no-cycle": "error",
87
90
  "import/no-unused-modules": [
88
91
  "error",
@@ -114,7 +117,7 @@ module.exports = {
114
117
  "perfectionist/sort-jsx-props": ["error", { "ignore-case": true, type: "natural" }],
115
118
  "perfectionist/sort-maps": ["error", { "ignore-case": true, type: "natural" }],
116
119
  "perfectionist/sort-named-exports": ["error", { "ignore-case": true, type: "natural" }],
117
- "perfectionist/sort-named-imports": ["error", { "ignore-case": true, type: "natural" }],
120
+ "perfectionist/sort-named-imports": ["error", { "ignore-alias": true, "ignore-case": true, type: "natural" }],
118
121
  "perfectionist/sort-object-types": ["error", { "ignore-case": true, type: "natural" }],
119
122
  "perfectionist/sort-objects": ["error", { "ignore-case": true, "partition-by-comment": true, type: "natural" }],
120
123
  "perfectionist/sort-svelte-attributes": ["error", { "ignore-case": true, type: "natural" }],
@@ -0,0 +1,19 @@
1
+ /**
2
+ * While the sorting of imports is done by `eslint-plugin-perfectionist/sort-imports`,
3
+ * the order and grouping of imports is still taken from the previous configuration of `eslint-plugin-import/order`,
4
+ * as it feels more natural.
5
+ * The following group names are available for configuration: https://eslint-plugin-perfectionist.azat.io/rules/sort-imports#groups
6
+ */
7
+ const SORT_IMPORTS_GROUPS = [
8
+ ["builtin", "builtin-type"],
9
+ ["external", "external-type"],
10
+ ["internal", "internal-type"],
11
+ ["parent", "parent-type", "sibling", "sibling-type", "index", "index-type"],
12
+ ["style", "side-effect"],
13
+ "object",
14
+ "unknown",
15
+ ];
16
+
17
+ module.exports = {
18
+ SORT_IMPORTS_GROUPS,
19
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boehringer-ingelheim/eslint-config",
3
- "version": "3.1.0-next.1",
3
+ "version": "4.0.0-next.1",
4
4
  "description": "Shared eslint configuration used at Boehringer Ingelheim for code styling",
5
5
  "keywords": [
6
6
  "boehringer",
@@ -15,6 +15,7 @@
15
15
  "license": "MIT",
16
16
  "files": [
17
17
  "base",
18
+ "lib",
18
19
  "react",
19
20
  "playwright"
20
21
  ],
@@ -29,13 +30,13 @@
29
30
  "eslint": "^8.34.0"
30
31
  },
31
32
  "dependencies": {
32
- "@rushstack/eslint-patch": "^1.3.3",
33
- "@typescript-eslint/eslint-plugin": "^6.7.0",
34
- "@typescript-eslint/parser": "^6.7.0",
35
- "eslint-import-resolver-typescript": "^3.6.0",
33
+ "@rushstack/eslint-patch": "^1.5.1",
34
+ "@typescript-eslint/eslint-plugin": "^6.7.5",
35
+ "@typescript-eslint/parser": "^6.7.5",
36
+ "eslint-import-resolver-typescript": "^3.6.1",
36
37
  "eslint-plugin-import": "^2.28.1",
37
38
  "eslint-plugin-jsx-a11y": "^6.7.1",
38
- "eslint-plugin-perfectionist": "^2.1.0",
39
+ "eslint-plugin-perfectionist": "^2.2.0",
39
40
  "eslint-plugin-playwright": "^0.16.0",
40
41
  "eslint-plugin-react": "^7.33.2",
41
42
  "eslint-plugin-react-hooks": "^4.6.0",
@@ -44,14 +45,14 @@
44
45
  },
45
46
  "devDependencies": {
46
47
  "@boehringer-ingelheim/prettier-config": "1.0.0",
47
- "@commitlint/cli": "17.7.1",
48
- "@commitlint/config-conventional": "17.7.0",
48
+ "@commitlint/cli": "17.8.0",
49
+ "@commitlint/config-conventional": "17.8.0",
49
50
  "@commitlint/types": "17.4.4",
50
51
  "@semantic-release/changelog": "6.0.3",
51
52
  "@semantic-release/git": "10.0.1",
52
53
  "dotenv-cli": "7.3.0",
53
54
  "husky": "8.0.3",
54
55
  "prettier": "3.0.3",
55
- "semantic-release": "21.1.1"
56
+ "semantic-release": "22.0.5"
56
57
  }
57
58
  }