Skip to content

Commit b074e2d

Browse files
committed
refactor: add more eslint unicorn rules
1 parent d2bab4f commit b074e2d

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

resources/eslint/unicorn.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ const CONFIG = [
5050
"unicorn/prefer-code-point": "error",
5151
"unicorn/prefer-date-now": "error",
5252
"unicorn/prefer-dom-node-append": "error",
53-
"unicorn/prefer-global-this": "error",
53+
54+
// "unicorn/prefer-global-this": "error",
5455
"unicorn/prefer-dom-node-remove": "error",
5556
"unicorn/prefer-import-meta-properties": "error",
5657
"unicorn/prefer-modern-dom-apis": "error",
@@ -71,12 +72,14 @@ const CONFIG = [
7172
"unicorn/prefer-response-static-json": "error",
7273
"unicorn/prefer-set-has": "error",
7374
"unicorn/prefer-set-size": "error",
74-
"unicorn/prefer-single-call": "error",
75+
76+
// "unicorn/prefer-single-call": "error",
7577
"unicorn/prefer-string-replace-all": "error",
7678
"unicorn/prefer-string-starts-ends-with": "error",
7779
"unicorn/prefer-string-trim-start-end": "error",
7880
"unicorn/prefer-structured-clone": "error",
79-
"unicorn/prefer-string-raw": "error",
81+
82+
// "unicorn/prefer-string-raw": "error",
8083
"unicorn/prefer-string-slice": "error",
8184
"unicorn/relative-url-style": "error",
8285
"unicorn/require-module-attributes": "error",

0 commit comments

Comments
 (0)