From d98ffa15d757fe98422bad01471a57c3aae58aa9 Mon Sep 17 00:00:00 2001 From: Sysix Date: Mon, 18 Nov 2024 01:52:34 +0100 Subject: [PATCH] chore(deps): update npm packages --- eslint.config.ts | 8 +++ src/__snapshots__/configs.spec.ts.snap | 88 ++++++++++++++++++++++++++ 2 files changed, 96 insertions(+) diff --git a/eslint.config.ts b/eslint.config.ts index 18679a1..e9dc04e 100644 --- a/eslint.config.ts +++ b/eslint.config.ts @@ -12,5 +12,13 @@ export default [ unicorn.configs['flat/recommended'], ...tseslint.configs.recommended, eslintConfigPrettier, + { + rules: { + // https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2496 + 'unicorn/expiring-todo-comments': 'off', + // https://github.com/eslint/eslint/issues/19134 + '@typescript-eslint/no-unused-expressions': 'off', + }, + }, ...oxlint.buildFromOxlintConfigFile('oxlint.json'), ]; diff --git a/src/__snapshots__/configs.spec.ts.snap b/src/__snapshots__/configs.spec.ts.snap index a8ab545..4a91a49 100644 --- a/src/__snapshots__/configs.spec.ts.snap +++ b/src/__snapshots__/configs.spec.ts.snap @@ -205,12 +205,18 @@ exports[`contains all the oxlint rules 1`] = ` ], "array-callback-return": [ 0, + { + "allowImplicit": false, + "allowVoid": false, + "checkForEach": false, + }, ], "constructor-super": [ 0, ], "default-case": [ 0, + {}, ], "default-case-last": [ 0, @@ -226,9 +232,12 @@ exports[`contains all the oxlint rules 1`] = ` ], "func-names": [ 0, + "always", + {}, ], "getter-return": [ 0, + {}, ], "guard-for-in": [ 0, @@ -592,6 +601,9 @@ exports[`contains all the oxlint rules 1`] = ` ], "no-bitwise": [ 0, + { + "allow": [], + }, ], "no-caller": [ 0, @@ -607,9 +619,11 @@ exports[`contains all the oxlint rules 1`] = ` ], "no-cond-assign": [ 0, + "except-parens", ], "no-console": [ 0, + {}, ], "no-const-assign": [ 0, @@ -619,6 +633,9 @@ exports[`contains all the oxlint rules 1`] = ` ], "no-constant-condition": [ 0, + { + "checkLoops": "allExceptWhileTrue", + }, ], "no-constructor-return": [ 0, @@ -652,18 +669,28 @@ exports[`contains all the oxlint rules 1`] = ` ], "no-else-return": [ 0, + { + "allowElseIf": true, + }, ], "no-empty": [ 0, + { + "allowEmptyCatch": false, + }, ], "no-empty-character-class": [ 0, ], "no-empty-function": [ 0, + { + "allow": [], + }, ], "no-empty-pattern": [ 0, + {}, ], "no-empty-static-block": [ 0, @@ -673,36 +700,57 @@ exports[`contains all the oxlint rules 1`] = ` ], "no-eval": [ 0, + {}, ], "no-ex-assign": [ 0, ], "no-extend-native": [ 0, + { + "exceptions": [], + }, ], "no-extra-boolean-cast": [ 0, + {}, ], "no-fallthrough": [ 0, + { + "allowEmptyCase": false, + "reportUnusedFallthroughComment": false, + }, ], "no-func-assign": [ 0, ], "no-global-assign": [ 0, + { + "exceptions": [], + }, ], "no-import-assign": [ 0, ], "no-inner-declarations": [ 0, + "functions", ], "no-invalid-regexp": [ 0, + {}, ], "no-irregular-whitespace": [ 0, + { + "skipComments": false, + "skipJSXText": false, + "skipRegExps": false, + "skipStrings": true, + "skipTemplates": false, + }, ], "no-iterator": [ 0, @@ -739,6 +787,7 @@ exports[`contains all the oxlint rules 1`] = ` ], "no-plusplus": [ 0, + {}, ], "no-proto": [ 0, @@ -748,6 +797,9 @@ exports[`contains all the oxlint rules 1`] = ` ], "no-redeclare": [ 0, + { + "builtinGlobals": true, + }, ], "no-regex-spaces": [ 0, @@ -757,12 +809,16 @@ exports[`contains all the oxlint rules 1`] = ` ], "no-return-assign": [ 0, + "except-parens", ], "no-script-url": [ 0, ], "no-self-assign": [ 0, + { + "props": true, + }, ], "no-self-compare": [ 0, @@ -790,6 +846,7 @@ exports[`contains all the oxlint rules 1`] = ` ], "no-undef": [ 0, + {}, ], "no-undefined": [ 0, @@ -805,9 +862,11 @@ exports[`contains all the oxlint rules 1`] = ` ], "no-unsafe-negation": [ 0, + {}, ], "no-unsafe-optional-chaining": [ 0, + {}, ], "no-unused-labels": [ 0, @@ -832,12 +891,14 @@ exports[`contains all the oxlint rules 1`] = ` ], "no-useless-rename": [ 0, + {}, ], "no-var": [ 0, ], "no-void": [ 0, + {}, ], "no-with": [ 0, @@ -889,6 +950,7 @@ exports[`contains all the oxlint rules 1`] = ` ], "radix": [ 0, + "always", ], "react-hooks/rules-of-hooks": [ 0, @@ -1000,12 +1062,32 @@ exports[`contains all the oxlint rules 1`] = ` ], "sort-imports": [ 0, + { + "allowSeparatedGroups": false, + "ignoreCase": false, + "ignoreDeclarationSort": false, + "ignoreMemberSort": false, + "memberSyntaxSortOrder": [ + "none", + "all", + "multiple", + "single", + ], + }, ], "sort-keys": [ 0, + "asc", + { + "allowLineSeparatedGroups": false, + "caseSensitive": true, + "minKeys": 2, + "natural": false, + }, ], "sort-vars": [ 0, + {}, ], "symbol-description": [ 0, @@ -1015,6 +1097,7 @@ exports[`contains all the oxlint rules 1`] = ` ], "unicode-bom": [ 0, + "never", ], "unicorn/catch-error-name": [ 0, @@ -1282,9 +1365,14 @@ exports[`contains all the oxlint rules 1`] = ` ], "use-isnan": [ 0, + { + "enforceForIndexOf": false, + "enforceForSwitchCase": true, + }, ], "valid-typeof": [ 0, + {}, ], "vitest/no-conditional-tests": [ 0,