Skip to content

Commit c5eba15

Browse files
committed
Move functional/immutable-data test override to typescript config
1 parent d4fff46 commit c5eba15

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

docs/graphql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ Config for **GraphQL servers** implemented in Node.js.
3434
```
3535

3636

37-
## 📏 Rules (292)
37+
## 📏 Rules (291)
3838

39-
**264** rules are included from [`@code-pushup/eslint-config/node`](./node.md#📏-rules-264). For brevity, only the **28** additional rules are listed in this document.
39+
**264** rules are included from [`@code-pushup/eslint-config/node`](./node.md#📏-rules-264). For brevity, only the **27** additional rules are listed in this document.
4040

4141
> 🔧 Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).<br>💡 Manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).<br>🧪🚫 Disabled for [test files](../README.md#🧪-test-overrides).<br>🧪⚠️ Severity lessened to warning for [test files](../README.md#🧪-test-overrides).
4242

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Default config, suitable for any **JavaScript/TypeScript** project.
66

77
Refer to [setup instructions in README](../README.md#🏗️-setup).
88

9-
## 📏 Rules (249)
9+
## 📏 Rules (248)
1010

1111
> 🔧 Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).<br>💡 Manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).<br>🧪🚫 Disabled for [test files](../README.md#🧪-test-overrides).<br>🧪⚠️ Severity lessened to warning for [test files](../README.md#🧪-test-overrides).
1212

docs/node.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ Config for **Node.js** projects.
1919
```
2020

2121

22-
## 📏 Rules (253)
22+
## 📏 Rules (252)
2323

24-
**248** rules are included from [the default config](./index.md#📏-rules-248). For brevity, only the **5** additional rules are listed in this document.
24+
**248** rules are included from [the default config](./index.md#📏-rules-248). For brevity, only the **4** additional rules are listed in this document.
2525

2626
> 🔧 Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).<br>💡 Manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).<br>🧪🚫 Disabled for [test files](../README.md#🧪-test-overrides).<br>🧪⚠️ Severity lessened to warning for [test files](../README.md#🧪-test-overrides).
2727

docs/typescript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Config for strict **TypeScript** projects.
104104
| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [unified-signatures](https://typescript-eslint.io/rules/unified-signatures)<br>Disallow two overloads that could be unified into one with a union or an optional/rest parameter | | | |
105105
| [![@typescript-eslint](./icons/material/typescript.png)](https://typescript-eslint.io/) | [use-unknown-in-catch-callback-variable](https://typescript-eslint.io/rules/use-unknown-in-catch-callback-variable)<br>Enforce typing arguments in `.catch()` callbacks as `unknown` | | 🔧, 💡 | |
106106
| [![deprecation](./icons/icons8/expired.png)](https://github.com/gund/eslint-plugin-deprecation#readme) | [deprecation](https://github.com/gund/eslint-plugin-deprecation)<br>Do not use deprecated APIs. | | | |
107-
| [![functional](./icons/icons8/lambda.png)](https://github.com/eslint-functional/eslint-plugin-functional#readme) | [immutable-data](https://github.com/eslint-functional/eslint-plugin-functional/blob/v6.6.0/docs/rules/immutable-data.md)<br>Enforce treating data as immutable. | <details><summary>ignoreImmediateMutation: tr...</summary><pre>{<br> "ignoreImmediateMutation": true,<br> "ignoreClasses": true<br>}</pre></details> | | |
107+
| [![functional](./icons/icons8/lambda.png)](https://github.com/eslint-functional/eslint-plugin-functional#readme) | [immutable-data](https://github.com/eslint-functional/eslint-plugin-functional/blob/v6.6.0/docs/rules/immutable-data.md)<br>Enforce treating data as immutable. | <details><summary>ignoreImmediateMutation: tr...</summary><pre>{<br> "ignoreImmediateMutation": true,<br> "ignoreClasses": true<br>}</pre></details> | | 🧪⚠️ |
108108

109109
### ⚠️ Warnings (14)
110110

index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,6 @@ module.exports = {
171171
// CUSTOMIZED RULES FOR TEST FILES
172172

173173
'max-nested-callbacks': ['warn', { max: 10 }],
174-
'functional/immutable-data': [
175-
'warn',
176-
{ ignoreImmediateMutation: true },
177-
],
178174
},
179175
},
180176

typescript.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ module.exports = {
117117
},
118118
],
119119
'@typescript-eslint/require-await': 'warn',
120+
'functional/immutable-data': [
121+
'warn',
122+
{ ignoreImmediateMutation: true },
123+
],
120124
},
121125
},
122126
],

0 commit comments

Comments
 (0)