From e7abb323b66ba39eaff719d3049f391c6082d284 Mon Sep 17 00:00:00 2001 From: YAMADA Naoki Date: Sat, 7 Dec 2024 12:08:54 +0900 Subject: [PATCH] feat!: Update eslint-plugin-promise version (#345) * feat!: Update eslint-plugin-promise version * update snapshot --- package-lock.json | 19 ++- package.json | 2 +- .../next/__snapshots__/snapshot.test.js.snap | 16 ++ .../node/__snapshots__/snapshot.test.js.snap | 16 ++ .../react/__snapshots__/snapshot.test.js.snap | 16 ++ .../__snapshots__/snapshot.test.js.snap | 16 ++ .../next/__snapshots__/snapshot.test.js.snap | 141 +---------------- .../node/__snapshots__/snapshot.test.js.snap | 147 +----------------- .../react/__snapshots__/snapshot.test.js.snap | 141 +---------------- .../__snapshots__/snapshot.test.js.snap | 141 +---------------- 10 files changed, 95 insertions(+), 560 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1d770c1..8022967 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,7 +20,7 @@ "eslint-plugin-jsdoc": "^48.2.1", "eslint-plugin-jsx-a11y": "^6.8.0", "eslint-plugin-n": "^17.7.0", - "eslint-plugin-promise": "^6.1.1", + "eslint-plugin-promise": "^7.2.1", "eslint-plugin-react": "^7.34.0", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-storybook": "^0.8.0", @@ -5276,14 +5276,21 @@ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, "node_modules/eslint-plugin-promise": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-promise/-/eslint-plugin-promise-6.1.1.tgz", - "integrity": "sha512-tjqWDwVZQo7UIPMeDReOpUgHCmCiH+ePnVT+5zVapL0uuHnegBUs2smM13CzOs2Xb5+MHMRFTs9v24yjba4Oig==", + "version": "7.2.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-promise/-/eslint-plugin-promise-7.2.1.tgz", + "integrity": "sha512-SWKjd+EuvWkYaS+uN2csvj0KoP43YTu7+phKQ5v+xw6+A0gutVX2yqCeCkC3uLCJFiPfR2dD8Es5L7yUsmvEaA==", + "license": "ISC", + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0" + }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" }, "peerDependencies": { - "eslint": "^7.0.0 || ^8.0.0" + "eslint": "^7.0.0 || ^8.0.0 || ^9.0.0" } }, "node_modules/eslint-plugin-react": { diff --git a/package.json b/package.json index a25c8ec..ae482cd 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "eslint-plugin-jsdoc": "^48.2.1", "eslint-plugin-jsx-a11y": "^6.8.0", "eslint-plugin-n": "^17.7.0", - "eslint-plugin-promise": "^6.1.1", + "eslint-plugin-promise": "^7.2.1", "eslint-plugin-react": "^7.34.0", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-storybook": "^0.8.0", diff --git a/tests/snapshot-test/eslintrc/next/__snapshots__/snapshot.test.js.snap b/tests/snapshot-test/eslintrc/next/__snapshots__/snapshot.test.js.snap index 43bd502..6b454b4 100644 --- a/tests/snapshot-test/eslintrc/next/__snapshots__/snapshot.test.js.snap +++ b/tests/snapshot-test/eslintrc/next/__snapshots__/snapshot.test.js.snap @@ -290,6 +290,7 @@ exports[`should match ESLint configuration snapshot: next 1`] = ` "allowShortCircuit": true, "allowTaggedTemplates": true, "allowTernary": true, + "enforceForJSX": false, }, ], "@typescript-eslint/no-unused-vars": [ @@ -405,6 +406,8 @@ exports[`should match ESLint configuration snapshot: next 1`] = ` 2, { "allowImplicit": true, + "allowVoid": false, + "checkForEach": false, }, ], "arrow-body-style": [ @@ -425,6 +428,8 @@ exports[`should match ESLint configuration snapshot: next 1`] = ` 0, { "ignoreDestructuring": false, + "ignoreGlobals": false, + "ignoreImports": false, "properties": "never", }, ], @@ -447,6 +452,7 @@ exports[`should match ESLint configuration snapshot: next 1`] = ` "class-methods-use-this": [ 2, { + "enforceForClassFields": true, "exceptMethods": [], }, ], @@ -601,6 +607,7 @@ exports[`should match ESLint configuration snapshot: next 1`] = ` 2, { "allowUnsafeDynamicCyclicDependency": false, + "disableScc": false, "ignoreExternal": false, "maxDepth": "∞", }, @@ -734,6 +741,7 @@ exports[`should match ESLint configuration snapshot: next 1`] = ` "internal", ], ], + "named": false, "warnOnUnassignedImports": false, }, ], @@ -1303,6 +1311,7 @@ exports[`should match ESLint configuration snapshot: next 1`] = ` ], "newIsCap": true, "newIsCapExceptions": [], + "properties": true, }, ], "no-alert": [ @@ -1457,6 +1466,7 @@ exports[`should match ESLint configuration snapshot: next 1`] = ` { "allow": [], "boolean": false, + "disallowTemplateShorthand": false, "number": true, "string": true, }, @@ -1986,6 +1996,11 @@ exports[`should match ESLint configuration snapshot: next 1`] = ` "allow": [], "allowAfterSuper": false, "allowAfterThis": false, + "allowAfterThisConstructor": false, + "allowFunctionParams": true, + "allowInArrayDestructuring": true, + "allowInObjectDestructuring": true, + "enforceInClassFields": false, "enforceInMethodNames": true, }, ], @@ -2028,6 +2043,7 @@ exports[`should match ESLint configuration snapshot: next 1`] = ` "allowShortCircuit": true, "allowTaggedTemplates": true, "allowTernary": true, + "enforceForJSX": false, }, ], "no-unused-labels": [ diff --git a/tests/snapshot-test/eslintrc/node/__snapshots__/snapshot.test.js.snap b/tests/snapshot-test/eslintrc/node/__snapshots__/snapshot.test.js.snap index abbbd30..411803b 100644 --- a/tests/snapshot-test/eslintrc/node/__snapshots__/snapshot.test.js.snap +++ b/tests/snapshot-test/eslintrc/node/__snapshots__/snapshot.test.js.snap @@ -14,6 +14,8 @@ exports[`should match ESLint configuration snapshot: node 1`] = ` 2, { "allowImplicit": true, + "allowVoid": false, + "checkForEach": false, }, ], "arrow-body-style": [ @@ -34,6 +36,8 @@ exports[`should match ESLint configuration snapshot: node 1`] = ` 2, { "ignoreDestructuring": false, + "ignoreGlobals": false, + "ignoreImports": false, "properties": "never", }, ], @@ -56,6 +60,7 @@ exports[`should match ESLint configuration snapshot: node 1`] = ` "class-methods-use-this": [ 2, { + "enforceForClassFields": true, "exceptMethods": [], }, ], @@ -89,6 +94,7 @@ exports[`should match ESLint configuration snapshot: node 1`] = ` 2, { "allowKeywords": true, + "allowPattern": "", }, ], "eqeqeq": [ @@ -206,6 +212,7 @@ exports[`should match ESLint configuration snapshot: node 1`] = ` 2, { "allowUnsafeDynamicCyclicDependency": false, + "disableScc": false, "ignoreExternal": false, "maxDepth": "∞", }, @@ -339,6 +346,7 @@ exports[`should match ESLint configuration snapshot: node 1`] = ` "internal", ], ], + "named": false, "warnOnUnassignedImports": false, }, ], @@ -468,6 +476,7 @@ exports[`should match ESLint configuration snapshot: node 1`] = ` ], "newIsCap": true, "newIsCapExceptions": [], + "properties": true, }, ], "no-alert": [ @@ -622,6 +631,7 @@ exports[`should match ESLint configuration snapshot: node 1`] = ` { "allow": [], "boolean": false, + "disallowTemplateShorthand": false, "number": true, "string": true, }, @@ -1145,6 +1155,11 @@ exports[`should match ESLint configuration snapshot: node 1`] = ` "allow": [], "allowAfterSuper": false, "allowAfterThis": false, + "allowAfterThisConstructor": false, + "allowFunctionParams": true, + "allowInArrayDestructuring": true, + "allowInObjectDestructuring": true, + "enforceInClassFields": false, "enforceInMethodNames": true, }, ], @@ -1187,6 +1202,7 @@ exports[`should match ESLint configuration snapshot: node 1`] = ` "allowShortCircuit": true, "allowTaggedTemplates": true, "allowTernary": true, + "enforceForJSX": false, }, ], "no-unused-labels": [ diff --git a/tests/snapshot-test/eslintrc/react/__snapshots__/snapshot.test.js.snap b/tests/snapshot-test/eslintrc/react/__snapshots__/snapshot.test.js.snap index d58ed52..747f346 100644 --- a/tests/snapshot-test/eslintrc/react/__snapshots__/snapshot.test.js.snap +++ b/tests/snapshot-test/eslintrc/react/__snapshots__/snapshot.test.js.snap @@ -227,6 +227,7 @@ exports[`should match ESLint configuration snapshot: react 1`] = ` "allowShortCircuit": true, "allowTaggedTemplates": true, "allowTernary": true, + "enforceForJSX": false, }, ], "@typescript-eslint/no-unused-vars": [ @@ -342,6 +343,8 @@ exports[`should match ESLint configuration snapshot: react 1`] = ` 2, { "allowImplicit": true, + "allowVoid": false, + "checkForEach": false, }, ], "arrow-body-style": [ @@ -362,6 +365,8 @@ exports[`should match ESLint configuration snapshot: react 1`] = ` 0, { "ignoreDestructuring": false, + "ignoreGlobals": false, + "ignoreImports": false, "properties": "never", }, ], @@ -384,6 +389,7 @@ exports[`should match ESLint configuration snapshot: react 1`] = ` "class-methods-use-this": [ 2, { + "enforceForClassFields": true, "exceptMethods": [], }, ], @@ -538,6 +544,7 @@ exports[`should match ESLint configuration snapshot: react 1`] = ` 2, { "allowUnsafeDynamicCyclicDependency": false, + "disableScc": false, "ignoreExternal": false, "maxDepth": "∞", }, @@ -671,6 +678,7 @@ exports[`should match ESLint configuration snapshot: react 1`] = ` "internal", ], ], + "named": false, "warnOnUnassignedImports": false, }, ], @@ -1240,6 +1248,7 @@ exports[`should match ESLint configuration snapshot: react 1`] = ` ], "newIsCap": true, "newIsCapExceptions": [], + "properties": true, }, ], "no-alert": [ @@ -1394,6 +1403,7 @@ exports[`should match ESLint configuration snapshot: react 1`] = ` { "allow": [], "boolean": false, + "disallowTemplateShorthand": false, "number": true, "string": true, }, @@ -1923,6 +1933,11 @@ exports[`should match ESLint configuration snapshot: react 1`] = ` "allow": [], "allowAfterSuper": false, "allowAfterThis": false, + "allowAfterThisConstructor": false, + "allowFunctionParams": true, + "allowInArrayDestructuring": true, + "allowInObjectDestructuring": true, + "enforceInClassFields": false, "enforceInMethodNames": true, }, ], @@ -1965,6 +1980,7 @@ exports[`should match ESLint configuration snapshot: react 1`] = ` "allowShortCircuit": true, "allowTaggedTemplates": true, "allowTernary": true, + "enforceForJSX": false, }, ], "no-unused-labels": [ diff --git a/tests/snapshot-test/eslintrc/storybook/__snapshots__/snapshot.test.js.snap b/tests/snapshot-test/eslintrc/storybook/__snapshots__/snapshot.test.js.snap index 60ec05c..5505acc 100644 --- a/tests/snapshot-test/eslintrc/storybook/__snapshots__/snapshot.test.js.snap +++ b/tests/snapshot-test/eslintrc/storybook/__snapshots__/snapshot.test.js.snap @@ -227,6 +227,7 @@ exports[`should match ESLint configuration snapshot: storybook 1`] = ` "allowShortCircuit": true, "allowTaggedTemplates": true, "allowTernary": true, + "enforceForJSX": false, }, ], "@typescript-eslint/no-unused-vars": [ @@ -342,6 +343,8 @@ exports[`should match ESLint configuration snapshot: storybook 1`] = ` 2, { "allowImplicit": true, + "allowVoid": false, + "checkForEach": false, }, ], "arrow-body-style": [ @@ -362,6 +365,8 @@ exports[`should match ESLint configuration snapshot: storybook 1`] = ` 0, { "ignoreDestructuring": false, + "ignoreGlobals": false, + "ignoreImports": false, "properties": "never", }, ], @@ -384,6 +389,7 @@ exports[`should match ESLint configuration snapshot: storybook 1`] = ` "class-methods-use-this": [ 2, { + "enforceForClassFields": true, "exceptMethods": [], }, ], @@ -538,6 +544,7 @@ exports[`should match ESLint configuration snapshot: storybook 1`] = ` 2, { "allowUnsafeDynamicCyclicDependency": false, + "disableScc": false, "ignoreExternal": false, "maxDepth": "∞", }, @@ -671,6 +678,7 @@ exports[`should match ESLint configuration snapshot: storybook 1`] = ` "internal", ], ], + "named": false, "warnOnUnassignedImports": false, }, ], @@ -1009,6 +1017,7 @@ exports[`should match ESLint configuration snapshot: storybook 1`] = ` ], "newIsCap": true, "newIsCapExceptions": [], + "properties": true, }, ], "no-alert": [ @@ -1163,6 +1172,7 @@ exports[`should match ESLint configuration snapshot: storybook 1`] = ` { "allow": [], "boolean": false, + "disallowTemplateShorthand": false, "number": true, "string": true, }, @@ -1692,6 +1702,11 @@ exports[`should match ESLint configuration snapshot: storybook 1`] = ` "allow": [], "allowAfterSuper": false, "allowAfterThis": false, + "allowAfterThisConstructor": false, + "allowFunctionParams": true, + "allowInArrayDestructuring": true, + "allowInObjectDestructuring": true, + "enforceInClassFields": false, "enforceInMethodNames": true, }, ], @@ -1734,6 +1749,7 @@ exports[`should match ESLint configuration snapshot: storybook 1`] = ` "allowShortCircuit": true, "allowTaggedTemplates": true, "allowTernary": true, + "enforceForJSX": false, }, ], "no-unused-labels": [ diff --git a/tests/snapshot-test/flat/next/__snapshots__/snapshot.test.js.snap b/tests/snapshot-test/flat/next/__snapshots__/snapshot.test.js.snap index 840b102..e6ee9eb 100644 --- a/tests/snapshot-test/flat/next/__snapshots__/snapshot.test.js.snap +++ b/tests/snapshot-test/flat/next/__snapshots__/snapshot.test.js.snap @@ -3,7 +3,7 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` { "languageOptions": { - "ecmaVersion": 2025, + "ecmaVersion": "latest", "globals": { "AggregateError": false, "Array": false, @@ -372,6 +372,7 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` "allowShortCircuit": true, "allowTaggedTemplates": true, "allowTernary": true, + "enforceForJSX": false, }, ], "@typescript-eslint/no-unused-vars": [ @@ -478,11 +479,6 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` ], "accessor-pairs": [ 0, - { - "enforceForClassMembers": true, - "getWithoutSet": false, - "setWithoutGet": true, - }, ], "array-bracket-newline": [ 0, @@ -513,10 +509,7 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` "camelcase": [ 0, { - "allow": [], "ignoreDestructuring": false, - "ignoreGlobals": false, - "ignoreImports": false, "properties": "never", }, ], @@ -549,13 +542,9 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` ], "consistent-return": [ 0, - { - "treatUndefinedAsUnspecified": false, - }, ], "consistent-this": [ 0, - "that", ], "constructor-super": [ 0, @@ -566,7 +555,6 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` ], "default-case": [ 0, - {}, ], "default-case-last": [ 2, @@ -578,7 +566,6 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` 0, { "allowKeywords": true, - "allowPattern": "", }, ], "eqeqeq": [ @@ -602,15 +589,10 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` "func-names": [ 2, "as-needed", - {}, ], "func-style": [ 0, "expression", - { - "allowArrowFunctions": false, - "overrides": {}, - }, ], "getter-return": [ 0, @@ -620,7 +602,6 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` ], "grouped-accessor-pairs": [ 2, - "anyOrder", ], "guard-for-in": [ 2, @@ -630,22 +611,9 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` ], "id-length": [ 0, - { - "exceptionPatterns": [], - "exceptions": [], - "min": 2, - "properties": "always", - }, ], "id-match": [ 0, - "^.+$", - { - "classFields": false, - "ignoreDestructuring": false, - "onlyDeclarations": false, - "properties": false, - }, ], "import/consistent-type-specifier-style": [ 2, @@ -715,6 +683,7 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` 2, { "allowUnsafeDynamicCyclicDependency": false, + "disableScc": false, "ignoreExternal": false, "maxDepth": "∞", }, @@ -848,6 +817,7 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` "internal", ], ], + "named": false, "warnOnUnassignedImports": false, }, ], @@ -1423,10 +1393,6 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` ], "no-bitwise": [ 2, - { - "allow": [], - "int32Hint": false, - }, ], "no-caller": [ 2, @@ -1461,9 +1427,6 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` ], "no-constant-condition": [ 2, - { - "checkLoops": "allExceptWhileTrue", - }, ], "no-constructor-return": [ 2, @@ -1500,9 +1463,6 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` ], "no-duplicate-imports": [ 0, - { - "includeExports": false, - }, ], "no-else-return": [ 2, @@ -1512,9 +1472,6 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` ], "no-empty": [ 2, - { - "allowEmptyCatch": false, - }, ], "no-empty-character-class": [ 2, @@ -1532,9 +1489,6 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` ], "no-empty-pattern": [ 2, - { - "allowObjectPatternsAsParameters": false, - }, ], "no-empty-static-block": [ 2, @@ -1544,35 +1498,24 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` ], "no-eval": [ 2, - { - "allowIndirect": false, - }, ], "no-ex-assign": [ 2, ], "no-extend-native": [ 2, - { - "exceptions": [], - }, ], "no-extra-bind": [ 2, ], "no-extra-boolean-cast": [ 2, - {}, ], "no-extra-label": [ 2, ], "no-fallthrough": [ 2, - { - "allowEmptyCase": false, - "reportUnusedFallthroughComment": false, - }, ], "no-func-assign": [ 0, @@ -1595,9 +1538,6 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` ], "no-implicit-globals": [ 2, - { - "lexicalBindings": false, - }, ], "no-implied-eval": [ 0, @@ -1607,34 +1547,18 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` ], "no-inline-comments": [ 0, - {}, ], "no-inner-declarations": [ 2, - "functions", - { - "blockScopedFunctions": "allow", - }, ], "no-invalid-regexp": [ 2, - {}, ], "no-invalid-this": [ 2, - { - "capIsConstructor": true, - }, ], "no-irregular-whitespace": [ 2, - { - "skipComments": false, - "skipJSXText": false, - "skipRegExps": false, - "skipStrings": true, - "skipTemplates": false, - }, ], "no-iterator": [ 2, @@ -1675,9 +1599,6 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` ], "no-multi-assign": [ 2, - { - "ignoreNonDeclaration": false, - }, ], "no-multi-str": [ 2, @@ -1745,9 +1666,6 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` ], "no-promise-executor-return": [ 2, - { - "allowVoid": false, - }, ], "no-proto": [ 2, @@ -1757,9 +1675,6 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` ], "no-redeclare": [ 0, - { - "builtinGlobals": true, - }, ], "no-regex-spaces": [ 2, @@ -2106,21 +2021,12 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` ], "no-sequences": [ 2, - { - "allowInParentheses": true, - }, ], "no-setter-return": [ 0, ], "no-shadow": [ 0, - { - "allow": [], - "builtinGlobals": false, - "hoist": "functions", - "ignoreOnInitialization": false, - }, ], "no-shadow-restricted-names": [ 2, @@ -2142,9 +2048,6 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` ], "no-undef": [ 0, - { - "typeof": false, - }, ], "no-undef-init": [ 2, @@ -2192,9 +2095,6 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` ], "no-unsafe-negation": [ 0, - { - "enforceForOrderingRelations": false, - }, ], "no-unsafe-optional-chaining": [ 2, @@ -2208,7 +2108,6 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` "allowShortCircuit": true, "allowTaggedTemplates": true, "allowTernary": true, - "enforceForJSX": false, }, ], "no-unused-labels": [ @@ -2227,12 +2126,6 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` ], "no-use-before-define": [ 0, - { - "allowNamedExports": false, - "classes": true, - "functions": true, - "variables": true, - }, ], "no-useless-backreference": [ 2, @@ -2245,9 +2138,6 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` ], "no-useless-computed-key": [ 2, - { - "enforceForClassMembers": true, - }, ], "no-useless-concat": [ 2, @@ -2274,9 +2164,6 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` ], "no-void": [ 2, - { - "allowAsStatement": false, - }, ], "no-warning-comments": [ 0, @@ -2415,7 +2302,6 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` ], "radix": [ 2, - "always", ], "react-hooks/exhaustive-deps": [ 2, @@ -2872,9 +2758,6 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` ], "require-atomic-updates": [ 0, - { - "allowProperties": false, - }, ], "require-await": [ 0, @@ -2888,7 +2771,6 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` "sort-imports": [ 0, { - "allowSeparatedGroups": false, "ignoreCase": false, "ignoreDeclarationSort": false, "ignoreMemberSort": false, @@ -2904,18 +2786,12 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` 0, "asc", { - "allowLineSeparatedGroups": false, "caseSensitive": false, - "ignoreComputedKeys": false, - "minKeys": 2, "natural": true, }, ], "sort-vars": [ 0, - { - "ignoreCase": false, - }, ], "symbol-description": [ 2, @@ -3330,10 +3206,6 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` ], "use-isnan": [ 2, - { - "enforceForIndexOf": false, - "enforceForSwitchCase": true, - }, ], "valid-typeof": [ 2, @@ -3346,11 +3218,6 @@ exports[`should match ESLint Flat Configuration snapshot: next 1`] = ` ], "yoda": [ 2, - "never", - { - "exceptRange": false, - "onlyEquality": false, - }, ], }, "settings": { diff --git a/tests/snapshot-test/flat/node/__snapshots__/snapshot.test.js.snap b/tests/snapshot-test/flat/node/__snapshots__/snapshot.test.js.snap index abe884f..900962b 100644 --- a/tests/snapshot-test/flat/node/__snapshots__/snapshot.test.js.snap +++ b/tests/snapshot-test/flat/node/__snapshots__/snapshot.test.js.snap @@ -3,7 +3,7 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` { "languageOptions": { - "ecmaVersion": 2025, + "ecmaVersion": "latest", "globals": { "AggregateError": false, "Array": false, @@ -102,7 +102,6 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` "FunctionExpression": "FunctionExpression", "Identifier": "Identifier", "IfStatement": "IfStatement", - "ImportAttribute": "ImportAttribute", "ImportDeclaration": "ImportDeclaration", "ImportDefaultSpecifier": "ImportDefaultSpecifier", "ImportExpression": "ImportExpression", @@ -237,7 +236,6 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` "ExportAllDeclaration": [ "exported", "source", - "attributes", ], "ExportDefaultDeclaration": [ "declaration", @@ -246,7 +244,6 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` "declaration", "specifiers", "source", - "attributes", ], "ExportSpecifier": [ "exported", @@ -287,21 +284,15 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` "consequent", "alternate", ], - "ImportAttribute": [ - "key", - "value", - ], "ImportDeclaration": [ "specifiers", "source", - "attributes", ], "ImportDefaultSpecifier": [ "local", ], "ImportExpression": [ "source", - "options", ], "ImportNamespaceSpecifier": [ "local", @@ -463,7 +454,7 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` "argument", ], }, - "latestEcmaVersion": 16, + "latestEcmaVersion": 15, "name": "espree", "parse": [Function], "supportedEcmaVersions": [ @@ -479,10 +470,9 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` 13, 14, 15, - 16, ], "tokenize": [Function], - "version": "10.3.0", + "version": "9.6.1", }, "parserOptions": { "ecmaVersion": "latest", @@ -493,11 +483,6 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` "rules": { "accessor-pairs": [ 0, - { - "enforceForClassMembers": true, - "getWithoutSet": false, - "setWithoutGet": true, - }, ], "array-bracket-newline": [ 0, @@ -528,7 +513,6 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` "camelcase": [ 2, { - "allow": [], "ignoreDestructuring": false, "ignoreGlobals": false, "ignoreImports": false, @@ -564,13 +548,9 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "consistent-return": [ 0, - { - "treatUndefinedAsUnspecified": false, - }, ], "consistent-this": [ 0, - "that", ], "constructor-super": [ 2, @@ -581,7 +561,6 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "default-case": [ 0, - {}, ], "default-case-last": [ 2, @@ -617,15 +596,10 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` "func-names": [ 2, "as-needed", - {}, ], "func-style": [ 0, "expression", - { - "allowArrowFunctions": false, - "overrides": {}, - }, ], "getter-return": [ 2, @@ -635,7 +609,6 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "grouped-accessor-pairs": [ 2, - "anyOrder", ], "guard-for-in": [ 2, @@ -645,22 +618,9 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "id-length": [ 0, - { - "exceptionPatterns": [], - "exceptions": [], - "min": 2, - "properties": "always", - }, ], "id-match": [ 0, - "^.+$", - { - "classFields": false, - "ignoreDestructuring": false, - "onlyDeclarations": false, - "properties": false, - }, ], "import/consistent-type-specifier-style": [ 2, @@ -730,6 +690,7 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` 2, { "allowUnsafeDynamicCyclicDependency": false, + "disableScc": false, "ignoreExternal": false, "maxDepth": "∞", }, @@ -863,6 +824,7 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` "internal", ], ], + "named": false, "warnOnUnassignedImports": false, }, ], @@ -1009,10 +971,6 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "no-bitwise": [ 2, - { - "allow": [], - "int32Hint": false, - }, ], "no-caller": [ 2, @@ -1047,9 +1005,6 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "no-constant-condition": [ 2, - { - "checkLoops": "allExceptWhileTrue", - }, ], "no-constructor-return": [ 2, @@ -1086,9 +1041,6 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "no-duplicate-imports": [ 0, - { - "includeExports": false, - }, ], "no-else-return": [ 2, @@ -1098,9 +1050,6 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "no-empty": [ 2, - { - "allowEmptyCatch": false, - }, ], "no-empty-character-class": [ 2, @@ -1118,9 +1067,6 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "no-empty-pattern": [ 2, - { - "allowObjectPatternsAsParameters": false, - }, ], "no-empty-static-block": [ 2, @@ -1130,35 +1076,24 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "no-eval": [ 2, - { - "allowIndirect": false, - }, ], "no-ex-assign": [ 2, ], "no-extend-native": [ 2, - { - "exceptions": [], - }, ], "no-extra-bind": [ 2, ], "no-extra-boolean-cast": [ 2, - {}, ], "no-extra-label": [ 2, ], "no-fallthrough": [ 2, - { - "allowEmptyCase": false, - "reportUnusedFallthroughComment": false, - }, ], "no-func-assign": [ 2, @@ -1181,9 +1116,6 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "no-implicit-globals": [ 2, - { - "lexicalBindings": false, - }, ], "no-implied-eval": [ 2, @@ -1193,34 +1125,18 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "no-inline-comments": [ 0, - {}, ], "no-inner-declarations": [ 2, - "functions", - { - "blockScopedFunctions": "allow", - }, ], "no-invalid-regexp": [ 2, - {}, ], "no-invalid-this": [ 2, - { - "capIsConstructor": true, - }, ], "no-irregular-whitespace": [ 2, - { - "skipComments": false, - "skipJSXText": false, - "skipRegExps": false, - "skipStrings": true, - "skipTemplates": false, - }, ], "no-iterator": [ 2, @@ -1261,9 +1177,6 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "no-multi-assign": [ 2, - { - "ignoreNonDeclaration": false, - }, ], "no-multi-str": [ 2, @@ -1328,9 +1241,6 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "no-promise-executor-return": [ 2, - { - "allowVoid": false, - }, ], "no-proto": [ 2, @@ -1683,21 +1593,12 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "no-sequences": [ 2, - { - "allowInParentheses": true, - }, ], "no-setter-return": [ 2, ], "no-shadow": [ 0, - { - "allow": [], - "builtinGlobals": false, - "hoist": "functions", - "ignoreOnInitialization": false, - }, ], "no-shadow-restricted-names": [ 2, @@ -1719,9 +1620,6 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "no-undef": [ 0, - { - "typeof": false, - }, ], "no-undef-init": [ 2, @@ -1769,9 +1667,6 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "no-unsafe-negation": [ 2, - { - "enforceForOrderingRelations": false, - }, ], "no-unsafe-optional-chaining": [ 2, @@ -1804,12 +1699,6 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "no-use-before-define": [ 0, - { - "allowNamedExports": false, - "classes": true, - "functions": true, - "variables": true, - }, ], "no-useless-backreference": [ 2, @@ -1822,9 +1711,6 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "no-useless-computed-key": [ 2, - { - "enforceForClassMembers": true, - }, ], "no-useless-concat": [ 2, @@ -1851,9 +1737,6 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "no-void": [ 2, - { - "allowAsStatement": false, - }, ], "no-warning-comments": [ 0, @@ -1992,13 +1875,9 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "radix": [ 2, - "always", ], "require-atomic-updates": [ 0, - { - "allowProperties": false, - }, ], "require-await": [ 0, @@ -2012,7 +1891,6 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` "sort-imports": [ 0, { - "allowSeparatedGroups": false, "ignoreCase": false, "ignoreDeclarationSort": false, "ignoreMemberSort": false, @@ -2028,18 +1906,12 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` 0, "asc", { - "allowLineSeparatedGroups": false, "caseSensitive": false, - "ignoreComputedKeys": false, - "minKeys": 2, "natural": true, }, ], "sort-vars": [ 0, - { - "ignoreCase": false, - }, ], "symbol-description": [ 2, @@ -2454,10 +2326,6 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "use-isnan": [ 2, - { - "enforceForIndexOf": false, - "enforceForSwitchCase": true, - }, ], "valid-typeof": [ 2, @@ -2470,11 +2338,6 @@ exports[`should match ESLint Flat Configuration snapshot: node 1`] = ` ], "yoda": [ 2, - "never", - { - "exceptRange": false, - "onlyEquality": false, - }, ], }, "settings": { diff --git a/tests/snapshot-test/flat/react/__snapshots__/snapshot.test.js.snap b/tests/snapshot-test/flat/react/__snapshots__/snapshot.test.js.snap index 6618b21..02f3476 100644 --- a/tests/snapshot-test/flat/react/__snapshots__/snapshot.test.js.snap +++ b/tests/snapshot-test/flat/react/__snapshots__/snapshot.test.js.snap @@ -3,7 +3,7 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` { "languageOptions": { - "ecmaVersion": 2025, + "ecmaVersion": "latest", "globals": { "AggregateError": false, "Array": false, @@ -309,6 +309,7 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` "allowShortCircuit": true, "allowTaggedTemplates": true, "allowTernary": true, + "enforceForJSX": false, }, ], "@typescript-eslint/no-unused-vars": [ @@ -415,11 +416,6 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` ], "accessor-pairs": [ 0, - { - "enforceForClassMembers": true, - "getWithoutSet": false, - "setWithoutGet": true, - }, ], "array-bracket-newline": [ 0, @@ -450,10 +446,7 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` "camelcase": [ 0, { - "allow": [], "ignoreDestructuring": false, - "ignoreGlobals": false, - "ignoreImports": false, "properties": "never", }, ], @@ -486,13 +479,9 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` ], "consistent-return": [ 0, - { - "treatUndefinedAsUnspecified": false, - }, ], "consistent-this": [ 0, - "that", ], "constructor-super": [ 0, @@ -503,7 +492,6 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` ], "default-case": [ 0, - {}, ], "default-case-last": [ 2, @@ -515,7 +503,6 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` 0, { "allowKeywords": true, - "allowPattern": "", }, ], "eqeqeq": [ @@ -539,15 +526,10 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` "func-names": [ 2, "as-needed", - {}, ], "func-style": [ 0, "expression", - { - "allowArrowFunctions": false, - "overrides": {}, - }, ], "getter-return": [ 0, @@ -557,7 +539,6 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` ], "grouped-accessor-pairs": [ 2, - "anyOrder", ], "guard-for-in": [ 2, @@ -567,22 +548,9 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` ], "id-length": [ 0, - { - "exceptionPatterns": [], - "exceptions": [], - "min": 2, - "properties": "always", - }, ], "id-match": [ 0, - "^.+$", - { - "classFields": false, - "ignoreDestructuring": false, - "onlyDeclarations": false, - "properties": false, - }, ], "import/consistent-type-specifier-style": [ 2, @@ -652,6 +620,7 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` 2, { "allowUnsafeDynamicCyclicDependency": false, + "disableScc": false, "ignoreExternal": false, "maxDepth": "∞", }, @@ -785,6 +754,7 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` "internal", ], ], + "named": false, "warnOnUnassignedImports": false, }, ], @@ -1360,10 +1330,6 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` ], "no-bitwise": [ 2, - { - "allow": [], - "int32Hint": false, - }, ], "no-caller": [ 2, @@ -1398,9 +1364,6 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` ], "no-constant-condition": [ 2, - { - "checkLoops": "allExceptWhileTrue", - }, ], "no-constructor-return": [ 2, @@ -1437,9 +1400,6 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` ], "no-duplicate-imports": [ 0, - { - "includeExports": false, - }, ], "no-else-return": [ 2, @@ -1449,9 +1409,6 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` ], "no-empty": [ 2, - { - "allowEmptyCatch": false, - }, ], "no-empty-character-class": [ 2, @@ -1469,9 +1426,6 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` ], "no-empty-pattern": [ 2, - { - "allowObjectPatternsAsParameters": false, - }, ], "no-empty-static-block": [ 2, @@ -1481,35 +1435,24 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` ], "no-eval": [ 2, - { - "allowIndirect": false, - }, ], "no-ex-assign": [ 2, ], "no-extend-native": [ 2, - { - "exceptions": [], - }, ], "no-extra-bind": [ 2, ], "no-extra-boolean-cast": [ 2, - {}, ], "no-extra-label": [ 2, ], "no-fallthrough": [ 2, - { - "allowEmptyCase": false, - "reportUnusedFallthroughComment": false, - }, ], "no-func-assign": [ 0, @@ -1532,9 +1475,6 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` ], "no-implicit-globals": [ 2, - { - "lexicalBindings": false, - }, ], "no-implied-eval": [ 0, @@ -1544,34 +1484,18 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` ], "no-inline-comments": [ 0, - {}, ], "no-inner-declarations": [ 2, - "functions", - { - "blockScopedFunctions": "allow", - }, ], "no-invalid-regexp": [ 2, - {}, ], "no-invalid-this": [ 2, - { - "capIsConstructor": true, - }, ], "no-irregular-whitespace": [ 2, - { - "skipComments": false, - "skipJSXText": false, - "skipRegExps": false, - "skipStrings": true, - "skipTemplates": false, - }, ], "no-iterator": [ 2, @@ -1612,9 +1536,6 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` ], "no-multi-assign": [ 2, - { - "ignoreNonDeclaration": false, - }, ], "no-multi-str": [ 2, @@ -1682,9 +1603,6 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` ], "no-promise-executor-return": [ 2, - { - "allowVoid": false, - }, ], "no-proto": [ 2, @@ -1694,9 +1612,6 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` ], "no-redeclare": [ 0, - { - "builtinGlobals": true, - }, ], "no-regex-spaces": [ 2, @@ -2043,21 +1958,12 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` ], "no-sequences": [ 2, - { - "allowInParentheses": true, - }, ], "no-setter-return": [ 0, ], "no-shadow": [ 0, - { - "allow": [], - "builtinGlobals": false, - "hoist": "functions", - "ignoreOnInitialization": false, - }, ], "no-shadow-restricted-names": [ 2, @@ -2079,9 +1985,6 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` ], "no-undef": [ 0, - { - "typeof": false, - }, ], "no-undef-init": [ 2, @@ -2129,9 +2032,6 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` ], "no-unsafe-negation": [ 0, - { - "enforceForOrderingRelations": false, - }, ], "no-unsafe-optional-chaining": [ 2, @@ -2145,7 +2045,6 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` "allowShortCircuit": true, "allowTaggedTemplates": true, "allowTernary": true, - "enforceForJSX": false, }, ], "no-unused-labels": [ @@ -2164,12 +2063,6 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` ], "no-use-before-define": [ 0, - { - "allowNamedExports": false, - "classes": true, - "functions": true, - "variables": true, - }, ], "no-useless-backreference": [ 2, @@ -2182,9 +2075,6 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` ], "no-useless-computed-key": [ 2, - { - "enforceForClassMembers": true, - }, ], "no-useless-concat": [ 2, @@ -2211,9 +2101,6 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` ], "no-void": [ 2, - { - "allowAsStatement": false, - }, ], "no-warning-comments": [ 0, @@ -2352,7 +2239,6 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` ], "radix": [ 2, - "always", ], "react-hooks/exhaustive-deps": [ 2, @@ -2809,9 +2695,6 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` ], "require-atomic-updates": [ 0, - { - "allowProperties": false, - }, ], "require-await": [ 0, @@ -2825,7 +2708,6 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` "sort-imports": [ 0, { - "allowSeparatedGroups": false, "ignoreCase": false, "ignoreDeclarationSort": false, "ignoreMemberSort": false, @@ -2841,18 +2723,12 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` 0, "asc", { - "allowLineSeparatedGroups": false, "caseSensitive": false, - "ignoreComputedKeys": false, - "minKeys": 2, "natural": true, }, ], "sort-vars": [ 0, - { - "ignoreCase": false, - }, ], "symbol-description": [ 2, @@ -3267,10 +3143,6 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` ], "use-isnan": [ 2, - { - "enforceForIndexOf": false, - "enforceForSwitchCase": true, - }, ], "valid-typeof": [ 2, @@ -3283,11 +3155,6 @@ exports[`should match ESLint Configuration snapshot: react 1`] = ` ], "yoda": [ 2, - "never", - { - "exceptRange": false, - "onlyEquality": false, - }, ], }, "settings": { diff --git a/tests/snapshot-test/flat/storybook/__snapshots__/snapshot.test.js.snap b/tests/snapshot-test/flat/storybook/__snapshots__/snapshot.test.js.snap index 952788a..eeddc8b 100644 --- a/tests/snapshot-test/flat/storybook/__snapshots__/snapshot.test.js.snap +++ b/tests/snapshot-test/flat/storybook/__snapshots__/snapshot.test.js.snap @@ -3,7 +3,7 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` { "languageOptions": { - "ecmaVersion": 2025, + "ecmaVersion": "latest", "globals": { "AggregateError": false, "Array": false, @@ -309,6 +309,7 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` "allowShortCircuit": true, "allowTaggedTemplates": true, "allowTernary": true, + "enforceForJSX": false, }, ], "@typescript-eslint/no-unused-vars": [ @@ -415,11 +416,6 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` ], "accessor-pairs": [ 0, - { - "enforceForClassMembers": true, - "getWithoutSet": false, - "setWithoutGet": true, - }, ], "array-bracket-newline": [ 0, @@ -450,10 +446,7 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` "camelcase": [ 0, { - "allow": [], "ignoreDestructuring": false, - "ignoreGlobals": false, - "ignoreImports": false, "properties": "never", }, ], @@ -486,13 +479,9 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` ], "consistent-return": [ 0, - { - "treatUndefinedAsUnspecified": false, - }, ], "consistent-this": [ 0, - "that", ], "constructor-super": [ 0, @@ -503,7 +492,6 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` ], "default-case": [ 0, - {}, ], "default-case-last": [ 2, @@ -515,7 +503,6 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` 0, { "allowKeywords": true, - "allowPattern": "", }, ], "eqeqeq": [ @@ -539,15 +526,10 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` "func-names": [ 2, "as-needed", - {}, ], "func-style": [ 0, "expression", - { - "allowArrowFunctions": false, - "overrides": {}, - }, ], "getter-return": [ 0, @@ -557,7 +539,6 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` ], "grouped-accessor-pairs": [ 2, - "anyOrder", ], "guard-for-in": [ 2, @@ -567,22 +548,9 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` ], "id-length": [ 0, - { - "exceptionPatterns": [], - "exceptions": [], - "min": 2, - "properties": "always", - }, ], "id-match": [ 0, - "^.+$", - { - "classFields": false, - "ignoreDestructuring": false, - "onlyDeclarations": false, - "properties": false, - }, ], "import/consistent-type-specifier-style": [ 2, @@ -652,6 +620,7 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` 2, { "allowUnsafeDynamicCyclicDependency": false, + "disableScc": false, "ignoreExternal": false, "maxDepth": "∞", }, @@ -785,6 +754,7 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` "internal", ], ], + "named": false, "warnOnUnassignedImports": false, }, ], @@ -1129,10 +1099,6 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` ], "no-bitwise": [ 2, - { - "allow": [], - "int32Hint": false, - }, ], "no-caller": [ 2, @@ -1167,9 +1133,6 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` ], "no-constant-condition": [ 2, - { - "checkLoops": "allExceptWhileTrue", - }, ], "no-constructor-return": [ 2, @@ -1206,9 +1169,6 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` ], "no-duplicate-imports": [ 0, - { - "includeExports": false, - }, ], "no-else-return": [ 2, @@ -1218,9 +1178,6 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` ], "no-empty": [ 2, - { - "allowEmptyCatch": false, - }, ], "no-empty-character-class": [ 2, @@ -1238,9 +1195,6 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` ], "no-empty-pattern": [ 2, - { - "allowObjectPatternsAsParameters": false, - }, ], "no-empty-static-block": [ 2, @@ -1250,35 +1204,24 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` ], "no-eval": [ 2, - { - "allowIndirect": false, - }, ], "no-ex-assign": [ 2, ], "no-extend-native": [ 2, - { - "exceptions": [], - }, ], "no-extra-bind": [ 2, ], "no-extra-boolean-cast": [ 2, - {}, ], "no-extra-label": [ 2, ], "no-fallthrough": [ 2, - { - "allowEmptyCase": false, - "reportUnusedFallthroughComment": false, - }, ], "no-func-assign": [ 0, @@ -1301,9 +1244,6 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` ], "no-implicit-globals": [ 2, - { - "lexicalBindings": false, - }, ], "no-implied-eval": [ 0, @@ -1313,34 +1253,18 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` ], "no-inline-comments": [ 0, - {}, ], "no-inner-declarations": [ 2, - "functions", - { - "blockScopedFunctions": "allow", - }, ], "no-invalid-regexp": [ 2, - {}, ], "no-invalid-this": [ 2, - { - "capIsConstructor": true, - }, ], "no-irregular-whitespace": [ 2, - { - "skipComments": false, - "skipJSXText": false, - "skipRegExps": false, - "skipStrings": true, - "skipTemplates": false, - }, ], "no-iterator": [ 2, @@ -1381,9 +1305,6 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` ], "no-multi-assign": [ 2, - { - "ignoreNonDeclaration": false, - }, ], "no-multi-str": [ 2, @@ -1451,9 +1372,6 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` ], "no-promise-executor-return": [ 2, - { - "allowVoid": false, - }, ], "no-proto": [ 2, @@ -1463,9 +1381,6 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` ], "no-redeclare": [ 0, - { - "builtinGlobals": true, - }, ], "no-regex-spaces": [ 2, @@ -1812,21 +1727,12 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` ], "no-sequences": [ 2, - { - "allowInParentheses": true, - }, ], "no-setter-return": [ 0, ], "no-shadow": [ 0, - { - "allow": [], - "builtinGlobals": false, - "hoist": "functions", - "ignoreOnInitialization": false, - }, ], "no-shadow-restricted-names": [ 2, @@ -1848,9 +1754,6 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` ], "no-undef": [ 0, - { - "typeof": false, - }, ], "no-undef-init": [ 2, @@ -1898,9 +1801,6 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` ], "no-unsafe-negation": [ 0, - { - "enforceForOrderingRelations": false, - }, ], "no-unsafe-optional-chaining": [ 2, @@ -1914,7 +1814,6 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` "allowShortCircuit": true, "allowTaggedTemplates": true, "allowTernary": true, - "enforceForJSX": false, }, ], "no-unused-labels": [ @@ -1933,12 +1832,6 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` ], "no-use-before-define": [ 0, - { - "allowNamedExports": false, - "classes": true, - "functions": true, - "variables": true, - }, ], "no-useless-backreference": [ 2, @@ -1951,9 +1844,6 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` ], "no-useless-computed-key": [ 2, - { - "enforceForClassMembers": true, - }, ], "no-useless-concat": [ 2, @@ -1980,9 +1870,6 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` ], "no-void": [ 2, - { - "allowAsStatement": false, - }, ], "no-warning-comments": [ 0, @@ -2121,7 +2008,6 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` ], "radix": [ 2, - "always", ], "react-hooks/exhaustive-deps": [ 2, @@ -2578,9 +2464,6 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` ], "require-atomic-updates": [ 0, - { - "allowProperties": false, - }, ], "require-await": [ 0, @@ -2594,7 +2477,6 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` "sort-imports": [ 0, { - "allowSeparatedGroups": false, "ignoreCase": false, "ignoreDeclarationSort": false, "ignoreMemberSort": false, @@ -2610,18 +2492,12 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` 0, "asc", { - "allowLineSeparatedGroups": false, "caseSensitive": false, - "ignoreComputedKeys": false, - "minKeys": 2, "natural": true, }, ], "sort-vars": [ 0, - { - "ignoreCase": false, - }, ], "storybook/await-interactions": [ 2, @@ -3069,10 +2945,6 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` ], "use-isnan": [ 2, - { - "enforceForIndexOf": false, - "enforceForSwitchCase": true, - }, ], "valid-typeof": [ 2, @@ -3085,11 +2957,6 @@ exports[`should match ESLint Flat Configuration snapshot: storybook 1`] = ` ], "yoda": [ 2, - "never", - { - "exceptRange": false, - "onlyEquality": false, - }, ], }, "settings": {