@boehringer-ingelheim/eslint-config 7.0.0-next.3 → 7.0.0-shared-configuration-nextjs.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/README.md CHANGED
@@ -146,6 +146,19 @@ This shared ESLint configuration is specifically tailored for [React](https://re
146
146
  The configuration sets several custom rules, including [`@typescript-eslint/no-restricted-types`](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-restricted-types.mdx) and [`@typescript-eslint/consistent-type-definitions`](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/consistent-type-definitions.mdx), as well as rules for organizing and formatting import statements.
147
147
  Additionally in restricts the usage of enums using [`no-restricted-syntax`](https://github.com/eslint/eslint/blob/main/docs/src/rules/no-restricted-syntax.md).
148
148
 
149
+ ### Next.js
150
+
151
+ ```js
152
+ import boehringer from '@boehringer-ingelheim/eslint-config';
153
+
154
+ export default boehringer.config(
155
+ boehringer.configs.strict,
156
+ boehringer.configs.nextjs
157
+ );
158
+ ```
159
+
160
+ This shared ESLint configuration is specifically tailored for [Next.js](https://nextjs.org/) projects. It extends the [react configuration](#react) and includes the [`@next/eslint-plugin-next`](https://nextjs.org/docs/app/api-reference/config/eslint) plugin with the recommended and [`core-web-vital`](https://nextjs.org/docs/app/api-reference/config/eslint#with-core-web-vitals) rule set.
161
+
149
162
  ### Playwright
150
163
 
151
164
  ```js
@@ -0,0 +1,14 @@
1
+ const nextPlugin = require('@next/eslint-plugin-next');
2
+ const tseslint = require('typescript-eslint');
3
+
4
+ const react = require('./react.js');
5
+
6
+ module.exports = tseslint.config(...react, {
7
+ plugins: {
8
+ '@next/next': nextPlugin,
9
+ },
10
+ rules: {
11
+ ...nextPlugin.configs.recommended.rules,
12
+ ...nextPlugin.configs['core-web-vitals'].rules,
13
+ },
14
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boehringer-ingelheim/eslint-config",
3
- "version": "7.0.0-next.3",
3
+ "version": "7.0.0-shared-configuration-nextjs.1",
4
4
  "description": "Shared eslint configuration used at Boehringer Ingelheim for code styling",
5
5
  "keywords": [
6
6
  "boehringer",
@@ -22,7 +22,7 @@
22
22
  "prepare": "husky",
23
23
  "release": "dotenv -- semantic-release --no-ci",
24
24
  "release:ci": "semantic-release",
25
- "repair": "npx --no rimraf .git/hooks node_modules package-lock.json && npm install",
25
+ "repair": "npx --no rimraf@6 .git/hooks node_modules package-lock.json && npm install",
26
26
  "lint": "eslint ."
27
27
  },
28
28
  "peerDependencies": {
@@ -30,30 +30,31 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@eslint/js": "^9.17.0",
33
+ "@next/eslint-plugin-next": "^15.1.4",
33
34
  "eslint-config-prettier": "^9.1.0",
34
35
  "eslint-import-resolver-typescript": "^3.7.0",
35
36
  "eslint-plugin-import": "^2.31.0",
36
37
  "eslint-plugin-jsx-a11y": "^6.10.2",
37
- "eslint-plugin-perfectionist": "^4.3.0",
38
+ "eslint-plugin-perfectionist": "^4.6.0",
38
39
  "eslint-plugin-playwright": "^2.1.0",
39
- "eslint-plugin-react": "^7.37.2",
40
+ "eslint-plugin-react": "^7.37.3",
40
41
  "eslint-plugin-react-hooks": "^5.1.0",
41
42
  "eslint-plugin-react-refresh": "^0.4.16",
42
43
  "eslint-plugin-sonarjs": "^1.0.4",
43
44
  "globals": "^15.14.0",
44
45
  "is-ci": "^4.1.0",
45
- "typescript-eslint": "^8.18.1"
46
+ "typescript-eslint": "^8.19.1"
46
47
  },
47
48
  "devDependencies": {
48
49
  "@boehringer-ingelheim/prettier-config": "2.0.0",
49
- "@commitlint/cli": "19.6.0",
50
+ "@commitlint/cli": "19.6.1",
50
51
  "@commitlint/config-conventional": "19.6.0",
51
52
  "@commitlint/types": "19.5.0",
52
53
  "@semantic-release/changelog": "6.0.3",
53
54
  "@semantic-release/git": "10.0.1",
54
- "dotenv-cli": "7.4.4",
55
+ "dotenv-cli": "8.0.0",
55
56
  "husky": "9.1.7",
56
57
  "prettier": "3.4.2",
57
- "semantic-release": "24.2.0"
58
+ "semantic-release": "24.2.1"
58
59
  }
59
60
  }