Skip to content

Commit 3545a3b

Browse files
committed
docs: @putout/plugin-eslint: remove-useless-define-config
1 parent 9f7f1cd commit 3545a3b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

packages/plugin-eslint/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ npm i @putout/plugin-eslint -D
3434
-[declare](#declare);
3535
-[move-putout-to-end-of-extends](#move-putout-to-end-of-extends);
3636
-[remove-no-missing](#remove-no-missing);
37+
-[remove-useless-define-config](#remove-useless-define-config);
3738
-[remove-no-unpublished-require](#remove-no-unpublished-require);
3839
-[remove-no-unsupported-features](#remove-no-unsupported-features);
3940
-[remove-overrides-with-empty-rules](#remove-overrides-with-empty-rules);
@@ -73,6 +74,7 @@ npm i @putout/plugin-eslint -D
7374
"eslint/remove-no-unsupported-features": "on",
7475
"eslint/remove-overrides-with-empty-rules": "on",
7576
"eslint/remove-useless-slice": "on",
77+
"eslint/remove-useless-define-config": "on",
7678
"eslint/remove-useless-properties": "on",
7779
"eslint/remove-useless-match-to-flat": "on",
7880
"eslint/remove-parser-options": "on",
@@ -649,6 +651,22 @@ export default x;
649651
module.exports = x;
650652
```
651653
654+
## remove-useless-define-config
655+
656+
Checkout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/732e388d14c2e1cd346928d93ea36a3b/84722e7793e6043c473644176dce2d1371f90a61).
657+
658+
### ❌ Example of incorrect code
659+
660+
```js
661+
export default defineConfig([safeAlign]);
662+
```
663+
664+
## ✅ Example of correct code
665+
666+
```js
667+
export default safeAlign;
668+
```
669+
652670
## remove-useless-properties
653671
654672
Checkout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/bc90ecd03d5e55900d95797a4979adb4/aed3f14d3541674a2c08c61bf87ac0c0f833532b).

0 commit comments

Comments
 (0)