lint: enable small oxlint rules

This commit is contained in:
Peter Steinberger
2026-04-11 02:10:14 +01:00
parent ce87edbad4
commit 39d1a817fa
41 changed files with 144 additions and 151 deletions

View File

@@ -8,13 +8,13 @@
},
"rules": {
"curly": "error",
"eslint-plugin-unicorn/prefer-array-find": "off",
"eslint-plugin-unicorn/prefer-array-find": "error",
"eslint/no-await-in-loop": "off",
"eslint/no-new": "off",
"eslint/no-new": "error",
"eslint/no-shadow": "off",
"eslint/no-unmodified-loop-condition": "off",
"eslint-plugin-unicorn/prefer-set-size": "off",
"oxc/no-accumulating-spread": "off",
"eslint/no-unmodified-loop-condition": "error",
"eslint-plugin-unicorn/prefer-set-size": "error",
"oxc/no-accumulating-spread": "error",
"oxc/no-async-endpoint-handlers": "off",
"oxc/no-map-spread": "off",
"typescript/consistent-return": "error",
@@ -23,8 +23,8 @@
"typescript/no-unnecessary-type-conversion": "error",
"typescript/no-unsafe-type-assertion": "off",
"unicorn/consistent-function-scoping": "off",
"unicorn/prefer-set-size": "off",
"unicorn/require-post-message-target-origin": "off"
"unicorn/prefer-set-size": "error",
"unicorn/require-post-message-target-origin": "error"
},
"ignorePatterns": [
"assets/",