Skip to content

Commit 278fc06

Browse files
Merge pull request #19917 from Snuffleupagus/unicorn-59-rule-updates
Add a couple of new `eslint-plugin-unicorn` rules
2 parents b05351c + b81b9ce commit 278fc06

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

eslint.config.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,16 @@ export default [
126126
"perfectionist/sort-exports": "error",
127127
"perfectionist/sort-named-exports": "error",
128128
"unicorn/no-abusive-eslint-disable": "error",
129-
"unicorn/no-array-push-push": "error",
130129
"unicorn/no-array-reduce": ["error", { allowSimpleOperations: true }],
131130
"unicorn/no-console-spaces": "error",
132131
"unicorn/no-instanceof-builtins": "error",
133132
"unicorn/no-invalid-remove-event-listener": "error",
134133
"unicorn/no-new-buffer": "error",
135134
"unicorn/no-single-promise-in-promise-methods": "error",
136135
"unicorn/no-typeof-undefined": ["error", { checkGlobalVariables: false }],
136+
"unicorn/no-unnecessary-array-flat-depth": "error",
137+
"unicorn/no-unnecessary-array-splice-count": "error",
138+
"unicorn/no-unnecessary-slice-end": "error",
137139
"unicorn/no-useless-promise-resolve-reject": "error",
138140
"unicorn/no-useless-spread": "error",
139141
"unicorn/prefer-array-find": "error",
@@ -153,6 +155,7 @@ export default [
153155
"unicorn/prefer-negative-index": "error",
154156
"unicorn/prefer-optional-catch-binding": "error",
155157
"unicorn/prefer-regexp-test": "error",
158+
"unicorn/prefer-single-call": "error",
156159
"unicorn/prefer-string-replace-all": "error",
157160
"unicorn/prefer-string-starts-ends-with": "error",
158161
"unicorn/prefer-ternary": ["error", "only-single-line"],

0 commit comments

Comments
 (0)