@boehringer-ingelheim/eslint-config 7.0.0-next.2 → 7.0.0-next.4
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 +8 -9
- package/configs/base.js +1 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -85,21 +85,20 @@ The following plugins are used in this configuration:
|
|
|
85
85
|
|
|
86
86
|
Additionally, the [`eslint-plugin-perfectionist`](https://github.com/azat-io/eslint-plugin-perfectionist) is used to automatically fix sorting issues.
|
|
87
87
|
|
|
88
|
-
This configuration also sets up the TypeScript parser [`@typescript-eslint/parser`](https://typescript-eslint.io/
|
|
88
|
+
This configuration also sets up the TypeScript parser [`@typescript-eslint/parser`](https://typescript-eslint.io/packages/parser/) and [`eslint-import-resolver-typescript`](https://github.com/import-js/eslint-import-resolver-typescript). The TypeScript project configuration file `./tsconfig.json` is set as default value in the parser configuration. If this is not the case, this must be changed accordingly:
|
|
89
89
|
|
|
90
90
|
```js
|
|
91
91
|
import boehringer from '@boehringer-ingelheim/eslint-config';
|
|
92
92
|
|
|
93
|
-
export default boehringer.config(
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
project: ['./tsconfig.dev.json'],
|
|
93
|
+
export default boehringer.config(boehringer.configs.base, {
|
|
94
|
+
languageOptions: {
|
|
95
|
+
parserOptions: {
|
|
96
|
+
projectService: {
|
|
97
|
+
defaultProject: ['./tsconfig.dev.json'],
|
|
99
98
|
},
|
|
100
99
|
},
|
|
101
|
-
}
|
|
102
|
-
);
|
|
100
|
+
},
|
|
101
|
+
});
|
|
103
102
|
```
|
|
104
103
|
|
|
105
104
|
### Local
|
package/configs/base.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boehringer-ingelheim/eslint-config",
|
|
3
|
-
"version": "7.0.0-next.
|
|
3
|
+
"version": "7.0.0-next.4",
|
|
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": {
|
|
@@ -34,26 +34,26 @@
|
|
|
34
34
|
"eslint-import-resolver-typescript": "^3.7.0",
|
|
35
35
|
"eslint-plugin-import": "^2.31.0",
|
|
36
36
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
37
|
-
"eslint-plugin-perfectionist": "^4.
|
|
37
|
+
"eslint-plugin-perfectionist": "^4.6.0",
|
|
38
38
|
"eslint-plugin-playwright": "^2.1.0",
|
|
39
|
-
"eslint-plugin-react": "^7.37.
|
|
39
|
+
"eslint-plugin-react": "^7.37.3",
|
|
40
40
|
"eslint-plugin-react-hooks": "^5.1.0",
|
|
41
41
|
"eslint-plugin-react-refresh": "^0.4.16",
|
|
42
42
|
"eslint-plugin-sonarjs": "^1.0.4",
|
|
43
43
|
"globals": "^15.14.0",
|
|
44
44
|
"is-ci": "^4.1.0",
|
|
45
|
-
"typescript-eslint": "^8.
|
|
45
|
+
"typescript-eslint": "^8.19.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@boehringer-ingelheim/prettier-config": "2.0.0",
|
|
49
|
-
"@commitlint/cli": "19.6.
|
|
49
|
+
"@commitlint/cli": "19.6.1",
|
|
50
50
|
"@commitlint/config-conventional": "19.6.0",
|
|
51
51
|
"@commitlint/types": "19.5.0",
|
|
52
52
|
"@semantic-release/changelog": "6.0.3",
|
|
53
53
|
"@semantic-release/git": "10.0.1",
|
|
54
|
-
"dotenv-cli": "
|
|
54
|
+
"dotenv-cli": "8.0.0",
|
|
55
55
|
"husky": "9.1.7",
|
|
56
56
|
"prettier": "3.4.2",
|
|
57
|
-
"semantic-release": "24.2.
|
|
57
|
+
"semantic-release": "24.2.1"
|
|
58
58
|
}
|
|
59
59
|
}
|