@boehringer-ingelheim/eslint-config 9.0.0 → 9.1.0

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.
Files changed (2) hide show
  1. package/configs/nextjs.js +46 -1
  2. package/package.json +13 -13
package/configs/nextjs.js CHANGED
@@ -66,6 +66,32 @@ module.exports = defineConfig(
66
66
  },
67
67
  },
68
68
  {
69
+ files: [`{instrumentation,src/instrumentation}.{ts,tsx}`],
70
+ rules: {
71
+ 'import/no-unused-modules': ['off'],
72
+
73
+ // eslint-plugin-react-refresh: https://github.com/ArnaudBarre/eslint-plugin-react-refresh
74
+ 'react-refresh/only-export-components': [
75
+ 'warn',
76
+ {
77
+ allowExportNames: [
78
+ /**
79
+ * Next.js allows exporting the following exports in instrumentation files
80
+ *
81
+ * @link https://nextjs.org/docs/app/guides/instrumentation#convention
82
+ */
83
+ 'register',
84
+ ],
85
+ },
86
+ ],
87
+ },
88
+ },
89
+ {
90
+ /**
91
+ * Next.js 'middleware' files are beeing deprecated in favor of the new proxy files with v16+
92
+ *
93
+ * @link https://nextjs.org/blog/next-16#proxyts-formerly-middlewarets
94
+ */
69
95
  files: [`{middleware,src/middleware}.{ts,tsx}`],
70
96
  rules: {
71
97
  'import/no-unused-modules': ['off'],
@@ -87,6 +113,25 @@ module.exports = defineConfig(
87
113
  },
88
114
  },
89
115
  {
90
- ignores: ['.next/*'],
116
+ files: [`{proxy,src/proxy}.{ts,tsx}`],
117
+ rules: {
118
+ 'import/no-unused-modules': ['off'],
119
+
120
+ // eslint-plugin-react-refresh: https://github.com/ArnaudBarre/eslint-plugin-react-refresh
121
+ 'react-refresh/only-export-components': [
122
+ 'warn',
123
+ {
124
+ allowExportNames: [
125
+ /**
126
+ * Next.js allows exporting the following exports in proxy files
127
+ *
128
+ * @link https://nextjs.org/docs/app/api-reference/file-conventions/proxy#config-object-optional
129
+ */
130
+ 'config',
131
+ 'proxy',
132
+ ],
133
+ },
134
+ ],
135
+ },
91
136
  },
92
137
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boehringer-ingelheim/eslint-config",
3
- "version": "9.0.0",
3
+ "version": "9.1.0",
4
4
  "description": "Shared eslint configuration used at Boehringer Ingelheim for code styling",
5
5
  "keywords": [
6
6
  "boehringer",
@@ -25,29 +25,29 @@
25
25
  "prepare": "husky",
26
26
  "release": "dotenv -- semantic-release --no-ci",
27
27
  "release:ci": "semantic-release",
28
- "repair": "npx --no rimraf@6 .git/hooks node_modules package-lock.json && npm install",
28
+ "repair": "npx --yes rimraf@6 .git/hooks node_modules package-lock.json && npm install",
29
29
  "lint": "eslint ."
30
30
  },
31
31
  "peerDependencies": {
32
32
  "eslint": ">= 9.34.0"
33
33
  },
34
34
  "dependencies": {
35
- "@eslint/compat": "^1.4.0",
36
- "@eslint/js": "^9.37.0",
37
- "@next/eslint-plugin-next": "^15.5.4",
35
+ "@eslint/compat": "^2.0.0",
36
+ "@eslint/js": "^9.39.1",
37
+ "@next/eslint-plugin-next": "^16.0.5",
38
38
  "eslint-config-prettier": "^10.1.8",
39
39
  "eslint-import-resolver-typescript": "^4.4.4",
40
40
  "eslint-plugin-import": "^2.32.0",
41
41
  "eslint-plugin-jsx-a11y": "^6.10.2",
42
42
  "eslint-plugin-perfectionist": "^4.15.1",
43
- "eslint-plugin-playwright": "^2.2.2",
43
+ "eslint-plugin-playwright": "^2.3.0",
44
44
  "eslint-plugin-react": "^7.37.5",
45
- "eslint-plugin-react-hooks": "^6.1.1",
46
- "eslint-plugin-react-refresh": "^0.4.23",
45
+ "eslint-plugin-react-hooks": "^7.0.1",
46
+ "eslint-plugin-react-refresh": "^0.4.24",
47
47
  "eslint-plugin-sonarjs": "^3.0.5",
48
- "globals": "^16.4.0",
48
+ "globals": "^16.5.0",
49
49
  "is-ci": "^4.1.0",
50
- "typescript-eslint": "^8.46.0"
50
+ "typescript-eslint": "^8.48.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@boehringer-ingelheim/prettier-config": "2.0.0",
@@ -56,9 +56,9 @@
56
56
  "@commitlint/types": "20.0.0",
57
57
  "@semantic-release/changelog": "6.0.3",
58
58
  "@semantic-release/git": "10.0.1",
59
- "dotenv-cli": "10.0.0",
59
+ "dotenv-cli": "11.0.0",
60
60
  "husky": "9.1.7",
61
- "prettier": "3.6.2",
62
- "semantic-release": "24.2.9"
61
+ "prettier": "3.7.1",
62
+ "semantic-release": "25.0.2"
63
63
  }
64
64
  }