diff --git a/test/__snapshots__/test.spec.js.snap b/test/__snapshots__/test.spec.js.snap index 83d5cdc..285eed9 100644 --- a/test/__snapshots__/test.spec.js.snap +++ b/test/__snapshots__/test.spec.js.snap @@ -3178,9 +3178,22 @@ exports[`validate config the flat config is correct for index.mjs 1`] = ` ], "unicorn/better-regex": [ 0, + { + "sortCharacterClasses": true, + }, ], "unicorn/catch-error-name": [ 2, + { + "ignore": [], + "name": "error", + }, + ], + "unicorn/consistent-assert": [ + 2, + ], + "unicorn/consistent-date-clone": [ + 2, ], "unicorn/consistent-destructuring": [ 0, @@ -3193,6 +3206,9 @@ exports[`validate config the flat config is correct for index.mjs 1`] = ` ], "unicorn/consistent-function-scoping": [ 2, + { + "checkArrowFunctions": true, + }, ], "unicorn/custom-error-definition": [ 0, @@ -3205,6 +3221,7 @@ exports[`validate config the flat config is correct for index.mjs 1`] = ` ], "unicorn/escape-case": [ 2, + "uppercase", ], "unicorn/expiring-todo-comments": [ 2, @@ -3221,12 +3238,29 @@ exports[`validate config the flat config is correct for index.mjs 1`] = ` ], "unicorn/explicit-length-check": [ 2, + { + "non-zero": "greater-than", + }, ], "unicorn/filename-case": [ 2, ], "unicorn/import-style": [ 2, + {}, + ], + "unicorn/isolated-functions": [ + 2, + { + "comments": [ + "@isolated", + ], + "functions": [ + "makeSynchronous", + ], + "overrideGlobals": {}, + "selectors": [], + }, ], "unicorn/new-for-builtins": [ 2, @@ -3234,6 +3268,9 @@ exports[`validate config the flat config is correct for index.mjs 1`] = ` "unicorn/no-abusive-eslint-disable": [ 2, ], + "unicorn/no-accessor-recursion": [ + 2, + ], "unicorn/no-anonymous-default-export": [ 2, ], @@ -3246,11 +3283,23 @@ exports[`validate config the flat config is correct for index.mjs 1`] = ` "unicorn/no-array-method-this-argument": [ 2, ], - "unicorn/no-array-push-push": [ + "unicorn/no-array-reduce": [ 2, + { + "allowSimpleOperations": true, + }, ], - "unicorn/no-array-reduce": [ + "unicorn/no-array-reverse": [ + 2, + { + "allowExpressionStatement": true, + }, + ], + "unicorn/no-array-sort": [ 2, + { + "allowExpressionStatement": true, + }, ], "unicorn/no-await-expression-member": [ 2, @@ -3273,9 +3322,18 @@ exports[`validate config the flat config is correct for index.mjs 1`] = ` "unicorn/no-hex-escape": [ 2, ], - "unicorn/no-instanceof-array": [ + "unicorn/no-immediate-mutation": [ 2, ], + "unicorn/no-instanceof-builtins": [ + 2, + { + "exclude": [], + "include": [], + "strategy": "loose", + "useErrorIsError": false, + }, + ], "unicorn/no-invalid-fetch-options": [ 2, ], @@ -3284,9 +3342,7 @@ exports[`validate config the flat config is correct for index.mjs 1`] = ` ], "unicorn/no-keyword-prefix": [ 0, - ], - "unicorn/no-length-as-slice-end": [ - 2, + {}, ], "unicorn/no-lonely-if": [ 2, @@ -3294,6 +3350,9 @@ exports[`validate config the flat config is correct for index.mjs 1`] = ` "unicorn/no-magic-array-flat-depth": [ 2, ], + "unicorn/no-named-default": [ + 2, + ], "unicorn/no-negated-condition": [ 2, ], @@ -3311,6 +3370,9 @@ exports[`validate config the flat config is correct for index.mjs 1`] = ` ], "unicorn/no-null": [ 2, + { + "checkStrictEquality": false, + }, ], "unicorn/no-object-as-default-parameter": [ 2, @@ -3332,6 +3394,15 @@ exports[`validate config the flat config is correct for index.mjs 1`] = ` ], "unicorn/no-typeof-undefined": [ 2, + { + "checkGlobalVariables": false, + }, + ], + "unicorn/no-unnecessary-array-flat-depth": [ + 2, + ], + "unicorn/no-unnecessary-array-splice-count": [ + 2, ], "unicorn/no-unnecessary-await": [ 2, @@ -3339,6 +3410,9 @@ exports[`validate config the flat config is correct for index.mjs 1`] = ` "unicorn/no-unnecessary-polyfills": [ 2, ], + "unicorn/no-unnecessary-slice-end": [ + 2, + ], "unicorn/no-unreadable-array-destructuring": [ 2, ], @@ -3348,6 +3422,12 @@ exports[`validate config the flat config is correct for index.mjs 1`] = ` "unicorn/no-unused-properties": [ 0, ], + "unicorn/no-useless-collection-argument": [ + 2, + ], + "unicorn/no-useless-error-capture-stack-trace": [ + 2, + ], "unicorn/no-useless-fallback-in-spread": [ 2, ], @@ -3365,24 +3445,62 @@ exports[`validate config the flat config is correct for index.mjs 1`] = ` ], "unicorn/no-useless-undefined": [ 2, + { + "checkArguments": true, + "checkArrowFunctionBody": true, + }, ], "unicorn/no-zero-fractions": [ 2, ], "unicorn/number-literal-case": [ 0, + { + "hexadecimalValue": "uppercase", + }, ], "unicorn/numeric-separators-style": [ 2, + { + "binary": { + "groupLength": 4, + "minimumDigits": 0, + }, + "hexadecimal": { + "groupLength": 2, + "minimumDigits": 0, + }, + "number": { + "groupLength": 3, + "minimumDigits": 5, + }, + "octal": { + "groupLength": 4, + "minimumDigits": 0, + }, + "onlyIfContainsSeparator": false, + }, ], "unicorn/prefer-add-event-listener": [ 2, + { + "excludedPackages": [ + "koa", + "sax", + ], + }, ], "unicorn/prefer-array-find": [ 2, + { + "checkFromLast": true, + }, ], "unicorn/prefer-array-flat": [ 2, + { + "functions": [], + }, ], "unicorn/prefer-array-flat-map": [ 2, @@ -3395,10 +3513,23 @@ exports[`validate config the flat config is correct for index.mjs 1`] = ` ], "unicorn/prefer-at": [ 2, + { + "checkAllIndexAccess": false, + "getLastElementFunctions": [], + }, + ], + "unicorn/prefer-bigint-literals": [ + 2, ], "unicorn/prefer-blob-reading-methods": [ 2, ], + "unicorn/prefer-class-fields": [ + 2, + ], + "unicorn/prefer-classlist-toggle": [ + 2, + ], "unicorn/prefer-code-point": [ 2, ], @@ -3425,10 +3556,16 @@ exports[`validate config the flat config is correct for index.mjs 1`] = ` ], "unicorn/prefer-export-from": [ 2, + { + "ignoreUsedVariables": false, + }, ], "unicorn/prefer-global-this": [ 2, ], + "unicorn/prefer-import-meta-properties": [ + 0, + ], "unicorn/prefer-includes": [ 2, ], @@ -3467,9 +3604,16 @@ exports[`validate config the flat config is correct for index.mjs 1`] = ` ], "unicorn/prefer-number-properties": [ 2, + { + "checkInfinity": false, + "checkNaN": true, + }, ], "unicorn/prefer-object-from-entries": [ 2, + { + "functions": [], + }, ], "unicorn/prefer-optional-catch-binding": [ 2, @@ -3486,12 +3630,21 @@ exports[`validate config the flat config is correct for index.mjs 1`] = ` "unicorn/prefer-regexp-test": [ 2, ], + "unicorn/prefer-response-static-json": [ + 2, + ], "unicorn/prefer-set-has": [ 2, ], "unicorn/prefer-set-size": [ 2, ], + "unicorn/prefer-single-call": [ + 2, + { + "ignore": [], + }, + ], "unicorn/prefer-spread": [ 2, ], @@ -3512,12 +3665,20 @@ exports[`validate config the flat config is correct for index.mjs 1`] = ` ], "unicorn/prefer-structured-clone": [ 2, + { + "functions": [], + }, ], "unicorn/prefer-switch": [ 2, + { + "emptyDefaultCase": "no-default-comment", + "minimumCases": 3, + }, ], "unicorn/prefer-ternary": [ 2, + "always", ], "unicorn/prefer-top-level-await": [ 2, @@ -3542,10 +3703,17 @@ exports[`validate config the flat config is correct for index.mjs 1`] = ` ], "unicorn/relative-url-style": [ 2, + "never", ], "unicorn/require-array-join-separator": [ 2, ], + "unicorn/require-module-attributes": [ + 2, + ], + "unicorn/require-module-specifiers": [ + 2, + ], "unicorn/require-number-to-fixed-digits-argument": [ 2, ], @@ -3554,15 +3722,41 @@ exports[`validate config the flat config is correct for index.mjs 1`] = ` ], "unicorn/string-content": [ 0, + { + "patterns": {}, + }, ], "unicorn/switch-case-braces": [ 2, + "always", ], "unicorn/template-indent": [ 0, + { + "comments": [ + "HTML", + "indent", + ], + "functions": [ + "dedent", + "stripIndent", + ], + "selectors": [], + "tags": [ + "outdent", + "dedent", + "gql", + "sql", + "html", + "styled", + ], + }, ], "unicorn/text-encoding-identifier-case": [ 2, + { + "withDash": false, + }, ], "unicorn/throw-new-error": [ 2,