Skip to content

Commit 5885e12

Browse files
committed
Add unicorn/no-useless-fallback-in-spread
1 parent bb58633 commit 5885e12

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

eslint.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import typescriptEslint from "@typescript-eslint/eslint-plugin"
33
import eslintComments from "eslint-plugin-eslint-comments"
44
import node from "eslint-plugin-n"
55
import nodeDeps from "eslint-plugin-node-dependencies"
6+
import unicorn from "eslint-plugin-unicorn"
67
import tsParser from "@typescript-eslint/parser"
78
import jsonParser from "jsonc-eslint-parser"
89
import path from "node:path"
@@ -114,6 +115,7 @@ export default [
114115
"@typescript-eslint": typescriptEslint,
115116
"eslint-comments": eslintComments,
116117
node,
118+
unicorn,
117119
},
118120

119121
languageOptions: {
@@ -779,6 +781,8 @@ export default [
779781
],
780782
},
781783
],
784+
785+
"unicorn/no-useless-fallback-in-spread": ["error"],
782786
},
783787
},
784788
{

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"eslint-plugin-n": "^17.15.1",
4848
"eslint-plugin-node-dependencies": "^0.12.0",
4949
"eslint-plugin-prettier": "^5.2.3",
50+
"eslint-plugin-unicorn": "^57.0.0",
5051
"fs-extra": "^10.0.0",
5152
"jsonc-eslint-parser": "^2.0.3",
5253
"mocha": "^9.1.3",

0 commit comments

Comments
 (0)