@boehringer-ingelheim/eslint-config 6.0.0-next.3 → 6.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.
Files changed (2) hide show
  1. package/README.md +20 -0
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -136,6 +136,26 @@ This shared ESLint configuration is designed to enforce best practices and recom
136
136
  - [`playwright/prefer-to-have-length`](https://github.com/playwright-community/eslint-plugin-playwright/blob/main/docs/rules/prefer-to-have-length.md): enforces the use of `.toHaveLength()` instead of `.toEqual(n)` when testing the length of an object.
137
137
  - [`playwright/require-top-level-describe`](https://github.com/playwright-community/eslint-plugin-playwright/blob/main/docs/rules/require-top-level-describe.md): requires tests to be organized into top-level `describe()` blocks.
138
138
 
139
+ ### `@boehringer-ingelheim/eslint-config/prettier-disable`
140
+
141
+ ```js
142
+ module.exports = {
143
+ extends: [
144
+ '@boehringer-ingelheim/eslint-config/base/strict',
145
+ // Following needs eslint-plugin-prettier to be installed as described by https://github.com/prettier/eslint-plugin-prettier
146
+ // Should be second to last
147
+ 'plugin:prettier/recommended',
148
+ // Should be last
149
+ '@boehringer-ingelheim/eslint-config/prettier-disable'
150
+ ],
151
+ };
152
+ ```
153
+
154
+ This shared ESLint configuration is wrapper around [`eslint-config-disable`](https://github.com/prettier/eslint-config-prettier), which is used to turn off all rules that are unnecessary or might conflict with Prettier. This wrapper reenables a few rules that can be used with our shared configurations as we are using specific options of those rules which are compatible with Prettier (see [Special Rules](https://github.com/prettier/eslint-config-prettier#special-rules)). Following rules are reenabled:
155
+
156
+ - [`curly`](https://github.com/eslint/eslint/blob/main/docs/src/rules/curly.md) with the (default) option "all": Enforce consistent brace style for all control statements
157
+ - [`no-confusing-arrow`](https://github.com/eslint/eslint/blob/main/docs/src/rules/no-confusing-arrow.md) with allowParens `false` and onlyOneSimpleParam `true`: Disallow arrow functions where they could be confused with comparisons.
158
+
139
159
  ## Local Development
140
160
 
141
161
  ### Install Dependencies
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boehringer-ingelheim/eslint-config",
3
- "version": "6.0.0-next.3",
3
+ "version": "6.0.0-next.4",
4
4
  "description": "Shared eslint configuration used at Boehringer Ingelheim for code styling",
5
5
  "keywords": [
6
6
  "boehringer",
@@ -33,6 +33,7 @@
33
33
  "@rushstack/eslint-patch": "^1.10.3",
34
34
  "@typescript-eslint/eslint-plugin": "^7.17.0",
35
35
  "@typescript-eslint/parser": "^7.17.0",
36
+ "eslint-config-prettier": "^9.1.0",
36
37
  "eslint-import-resolver-typescript": "^3.6.1",
37
38
  "eslint-plugin-deprecation": "^3.0.0",
38
39
  "eslint-plugin-import": "^2.29.1",