From c2f1cf4544155792c20105bfff1b448bed245eae Mon Sep 17 00:00:00 2001 From: RebeccaStevens Date: Wed, 19 Jun 2024 06:20:00 +0000 Subject: [PATCH 1/9] ci: use node v20 for ci (#836) --- .github/actions/prepare/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/prepare/action.yml b/.github/actions/prepare/action.yml index b849304dd..a9042009b 100644 --- a/.github/actions/prepare/action.yml +++ b/.github/actions/prepare/action.yml @@ -5,7 +5,7 @@ inputs: node-version: required: false description: "`node-version` passed to `actions/setup-node`." - default: latest + default: "20" runs: using: "composite" From 2241095c535d3e4f43f3f7b5c4517def0b1dc304 Mon Sep 17 00:00:00 2001 From: RebeccaStevens Date: Wed, 19 Jun 2024 06:23:47 +0000 Subject: [PATCH 2/9] refactor: simplify paths (#837) --- cz-adapter/engine.ts | 2 +- rollup.config.ts | 8 ++--- src/classic.ts | 32 +++++++++---------- src/configs/all.ts | 4 +-- src/configs/currying.ts | 4 +-- src/configs/disable-type-checked.ts | 4 +-- .../external-typescript-recommended.ts | 2 +- src/configs/lite.ts | 10 +++--- src/configs/no-exceptions.ts | 4 +-- src/configs/no-mutations.ts | 4 +-- src/configs/no-other-paradigms.ts | 4 +-- src/configs/no-statements.ts | 4 +-- src/configs/off.ts | 4 +-- src/configs/recommended.ts | 22 ++++++------- src/configs/strict.ts | 4 +-- src/configs/stylistic.ts | 4 +-- src/flat.ts | 32 +++++++++---------- src/options/ignore.ts | 14 +++----- src/rules/functional-parameters.ts | 12 +++---- src/rules/immutable-data.ts | 13 +++----- src/rules/no-classes.ts | 6 ++-- src/rules/no-conditional-statements.ts | 8 ++--- src/rules/no-expression-statements.ts | 18 ++++------- src/rules/no-let.ts | 8 ++--- src/rules/no-loop-statements.ts | 6 ++-- src/rules/no-mixed-types.ts | 6 ++-- src/rules/no-promise-reject.ts | 9 ++---- src/rules/no-return-void.ts | 10 +++--- src/rules/no-this-expressions.ts | 4 +-- src/rules/no-throw-statements.ts | 6 ++-- src/rules/no-try-statements.ts | 4 +-- src/rules/prefer-immutable-types.ts | 10 +++--- src/rules/prefer-property-signatures.ts | 6 ++-- src/rules/prefer-readonly-type.ts | 15 ++++----- src/rules/prefer-tacit.ts | 12 +++---- src/rules/readonly-type.ts | 8 ++--- src/rules/type-declaration-immutability.ts | 13 +++----- .../conditional-imports/cjs/ts-api-utils.ts | 2 +- .../conditional-imports/esm/ts-api-utils.ts | 2 +- src/utils/misc.ts | 6 ++-- src/utils/rule.ts | 8 ++--- src/utils/tree.ts | 2 +- src/utils/type-guards.ts | 2 +- tests/common/ignore-options.test.ts | 14 +++----- tests/configs.test.ts | 24 +++++++------- tests/helpers/testers.ts | 2 +- tests/helpers/util.ts | 2 +- tests/index.test.ts | 4 +-- .../es2015/index.test.ts | 7 ++-- .../functional-parameters/es2015/invalid.ts | 4 +-- .../functional-parameters/es2015/valid.ts | 7 ++-- .../functional-parameters/es3/index.test.ts | 7 ++-- .../functional-parameters/es3/invalid.ts | 4 +-- .../rules/functional-parameters/es3/valid.ts | 7 ++-- .../immutable-data/ts/array/index.test.ts | 4 +-- .../rules/immutable-data/ts/array/invalid.ts | 4 +-- tests/rules/immutable-data/ts/array/valid.ts | 7 ++-- .../immutable-data/ts/object/index.test.ts | 4 +-- .../rules/immutable-data/ts/object/invalid.ts | 4 +-- tests/rules/immutable-data/ts/object/valid.ts | 7 ++-- tests/rules/index.test.ts | 2 +- tests/rules/no-class/es2015/index.test.ts | 4 +-- tests/rules/no-class/es2015/invalid.ts | 4 +-- tests/rules/no-class/es2015/valid.ts | 7 ++-- .../no-conditional-statement/ts/index.test.ts | 7 ++-- .../no-conditional-statement/ts/invalid.ts | 4 +-- .../no-conditional-statement/ts/valid.ts | 7 ++-- .../no-expression-statement/ts/index.test.ts | 7 ++-- .../no-expression-statement/ts/invalid.ts | 4 +-- .../rules/no-expression-statement/ts/valid.ts | 7 ++-- tests/rules/no-let/es2015/index.test.ts | 4 +-- tests/rules/no-let/es2015/invalid.ts | 4 +-- tests/rules/no-let/es2015/valid.ts | 7 ++-- .../no-loop-statement/es2015/index.test.ts | 4 +-- .../rules/no-loop-statement/es2015/invalid.ts | 4 +-- tests/rules/no-loop-statement/es2015/valid.ts | 7 ++-- .../rules/no-loop-statement/es3/index.test.ts | 4 +-- tests/rules/no-loop-statement/es3/invalid.ts | 4 +-- tests/rules/no-loop-statement/es3/valid.ts | 7 ++-- tests/rules/no-mixed-type/ts/index.test.ts | 4 +-- tests/rules/no-mixed-type/ts/invalid.ts | 4 +-- tests/rules/no-mixed-type/ts/valid.ts | 7 ++-- .../no-promise-reject/es2015/index.test.ts | 4 +-- .../rules/no-promise-reject/es2015/invalid.ts | 4 +-- tests/rules/no-promise-reject/es2015/valid.ts | 7 ++-- tests/rules/no-return-void/ts/index.test.ts | 4 +-- tests/rules/no-return-void/ts/invalid.ts | 4 +-- tests/rules/no-return-void/ts/valid.ts | 7 ++-- .../no-this-expression/es3/index.test.ts | 7 ++-- tests/rules/no-this-expression/es3/invalid.ts | 4 +-- tests/rules/no-this-expression/es3/valid.ts | 7 ++-- .../no-throw-statement/es2016/index.test.ts | 7 ++-- .../no-throw-statement/es2016/invalid.ts | 4 +-- .../rules/no-throw-statement/es2016/valid.ts | 7 ++-- .../no-throw-statement/es3/index.test.ts | 7 ++-- tests/rules/no-throw-statement/es3/invalid.ts | 4 +-- tests/rules/no-throw-statement/es3/valid.ts | 7 ++-- .../rules/no-try-statement/es3/index.test.ts | 4 +-- tests/rules/no-try-statement/es3/invalid.ts | 4 +-- tests/rules/no-try-statement/es3/valid.ts | 7 ++-- .../ts/parameters/index.test.ts | 7 ++-- .../ts/parameters/invalid.ts | 4 +-- .../ts/parameters/valid.ts | 7 ++-- .../ts/return-types/index.test.ts | 7 ++-- .../ts/return-types/invalid.ts | 4 +-- .../ts/return-types/valid.ts | 7 ++-- .../ts/variables/index.test.ts | 7 ++-- .../ts/variables/invalid.ts | 4 +-- .../ts/variables/valid.ts | 7 ++-- .../ts/index.test.ts | 7 ++-- .../prefer-property-signatures/ts/invalid.ts | 4 +-- .../prefer-property-signatures/ts/valid.ts | 7 ++-- .../prefer-readonly-type/ts/index.test.ts | 7 ++-- .../rules/prefer-readonly-type/ts/invalid.ts | 4 +-- tests/rules/prefer-readonly-type/ts/valid.ts | 7 ++-- tests/rules/prefer-tacit/ts/index.test.ts | 4 +-- tests/rules/prefer-tacit/ts/invalid.ts | 4 +-- tests/rules/prefer-tacit/ts/valid.ts | 7 ++-- tests/rules/readonly-type/ts/index.test.ts | 4 +-- tests/rules/readonly-type/ts/invalid.ts | 4 +-- tests/rules/readonly-type/ts/valid.ts | 7 ++-- .../ts/index.test.ts | 7 ++-- .../ts/invalid.ts | 4 +-- .../type-declaration-immutability/ts/valid.ts | 7 ++-- tsconfig.base.json | 20 ++++++------ 125 files changed, 348 insertions(+), 492 deletions(-) diff --git a/cz-adapter/engine.ts b/cz-adapter/engine.ts index 02d9e6cd5..d5d1e3f30 100644 --- a/cz-adapter/engine.ts +++ b/cz-adapter/engine.ts @@ -1,7 +1,7 @@ import chalk from "chalk"; import wrap from "word-wrap"; -import { rules } from "#eslint-plugin-functional/rules"; +import { rules } from "#/rules"; import { type Options } from "./options"; diff --git a/rollup.config.ts b/rollup.config.ts index a720ffdf4..9661deb75 100644 --- a/rollup.config.ts +++ b/rollup.config.ts @@ -31,7 +31,7 @@ const classicCJS = { ...resolvedConfig, paths: { ...resolvedConfig.paths, - "#eslint-plugin-functional/conditional-imports/*": [ + "#/conditional-imports/*": [ "src/utils/conditional-imports/cjs/*", ], }, @@ -65,7 +65,7 @@ const classicESM = { ...resolvedConfig, paths: { ...resolvedConfig.paths, - "#eslint-plugin-functional/conditional-imports/*": [ + "#/conditional-imports/*": [ "src/utils/conditional-imports/esm/*", ], }, @@ -99,7 +99,7 @@ const flatCJS = { ...resolvedConfig, paths: { ...resolvedConfig.paths, - "#eslint-plugin-functional/conditional-imports/*": [ + "#/conditional-imports/*": [ "src/utils/conditional-imports/cjs/*", ], }, @@ -133,7 +133,7 @@ const flatESM = { ...resolvedConfig, paths: { ...resolvedConfig.paths, - "#eslint-plugin-functional/conditional-imports/*": [ + "#/conditional-imports/*": [ "src/utils/conditional-imports/esm/*", ], }, diff --git a/src/classic.ts b/src/classic.ts index 21ca483ab..02c1d81c2 100644 --- a/src/classic.ts +++ b/src/classic.ts @@ -1,21 +1,21 @@ import { type Linter } from "@typescript-eslint/utils/ts-eslint"; -import all from "#eslint-plugin-functional/configs/all"; -import currying from "#eslint-plugin-functional/configs/currying"; -import disableTypeChecked from "#eslint-plugin-functional/configs/disable-type-checked"; -import externalTypeScriptRecommended from "#eslint-plugin-functional/configs/external-typescript-recommended"; -import externalVanillaRecommended from "#eslint-plugin-functional/configs/external-vanilla-recommended"; -import lite from "#eslint-plugin-functional/configs/lite"; -import noExceptions from "#eslint-plugin-functional/configs/no-exceptions"; -import noMutations from "#eslint-plugin-functional/configs/no-mutations"; -import noOtherParadigms from "#eslint-plugin-functional/configs/no-other-paradigms"; -import noStatements from "#eslint-plugin-functional/configs/no-statements"; -import off from "#eslint-plugin-functional/configs/off"; -import recommended from "#eslint-plugin-functional/configs/recommended"; -import strict from "#eslint-plugin-functional/configs/strict"; -import stylistic from "#eslint-plugin-functional/configs/stylistic"; -import { rules } from "#eslint-plugin-functional/rules"; -import { ruleNameScope } from "#eslint-plugin-functional/utils/misc"; +import all from "#/configs/all"; +import currying from "#/configs/currying"; +import disableTypeChecked from "#/configs/disable-type-checked"; +import externalTypeScriptRecommended from "#/configs/external-typescript-recommended"; +import externalVanillaRecommended from "#/configs/external-vanilla-recommended"; +import lite from "#/configs/lite"; +import noExceptions from "#/configs/no-exceptions"; +import noMutations from "#/configs/no-mutations"; +import noOtherParadigms from "#/configs/no-other-paradigms"; +import noStatements from "#/configs/no-statements"; +import off from "#/configs/off"; +import recommended from "#/configs/recommended"; +import strict from "#/configs/strict"; +import stylistic from "#/configs/stylistic"; +import { rules } from "#/rules"; +import { ruleNameScope } from "#/utils/misc"; export default { rules, diff --git a/src/configs/all.ts b/src/configs/all.ts index 362f3825a..a107efa90 100644 --- a/src/configs/all.ts +++ b/src/configs/all.ts @@ -1,7 +1,7 @@ import { type FlatConfig } from "@typescript-eslint/utils/ts-eslint"; -import { rules } from "#eslint-plugin-functional/rules"; -import { ruleNameScope } from "#eslint-plugin-functional/utils/misc"; +import { rules } from "#/rules"; +import { ruleNameScope } from "#/utils/misc"; export default { ...Object.fromEntries( diff --git a/src/configs/currying.ts b/src/configs/currying.ts index c6e571f40..2f3f2a44e 100644 --- a/src/configs/currying.ts +++ b/src/configs/currying.ts @@ -1,7 +1,7 @@ import { type FlatConfig } from "@typescript-eslint/utils/ts-eslint"; -import { rules } from "#eslint-plugin-functional/rules"; -import { ruleNameScope } from "#eslint-plugin-functional/utils/misc"; +import { rules } from "#/rules"; +import { ruleNameScope } from "#/utils/misc"; export default Object.fromEntries( Object.entries(rules) diff --git a/src/configs/disable-type-checked.ts b/src/configs/disable-type-checked.ts index 76827e53a..d699f8d4b 100644 --- a/src/configs/disable-type-checked.ts +++ b/src/configs/disable-type-checked.ts @@ -1,7 +1,7 @@ import { type FlatConfig } from "@typescript-eslint/utils/ts-eslint"; -import { rules } from "#eslint-plugin-functional/rules"; -import { ruleNameScope } from "#eslint-plugin-functional/utils/misc"; +import { rules } from "#/rules"; +import { ruleNameScope } from "#/utils/misc"; export default Object.fromEntries( Object.entries(rules) diff --git a/src/configs/external-typescript-recommended.ts b/src/configs/external-typescript-recommended.ts index f0c089f01..3eb980692 100644 --- a/src/configs/external-typescript-recommended.ts +++ b/src/configs/external-typescript-recommended.ts @@ -1,6 +1,6 @@ import { type FlatConfig } from "@typescript-eslint/utils/ts-eslint"; -import externalVanillaRecommended from "#eslint-plugin-functional/configs/external-vanilla-recommended"; +import externalVanillaRecommended from "#/configs/external-vanilla-recommended"; const tsConfig = { "@typescript-eslint/prefer-readonly": "error", diff --git a/src/configs/lite.ts b/src/configs/lite.ts index 79bb9a28d..ce71f647e 100644 --- a/src/configs/lite.ts +++ b/src/configs/lite.ts @@ -1,10 +1,10 @@ import { type FlatConfig } from "@typescript-eslint/utils/ts-eslint"; -import * as functionalParameters from "#eslint-plugin-functional/rules/functional-parameters"; -import * as immutableData from "#eslint-plugin-functional/rules/immutable-data"; -import * as noConditionalStatements from "#eslint-plugin-functional/rules/no-conditional-statements"; -import * as noExpressionStatements from "#eslint-plugin-functional/rules/no-expression-statements"; -import * as preferImmutableTypes from "#eslint-plugin-functional/rules/prefer-immutable-types"; +import * as functionalParameters from "#/rules/functional-parameters"; +import * as immutableData from "#/rules/immutable-data"; +import * as noConditionalStatements from "#/rules/no-conditional-statements"; +import * as noExpressionStatements from "#/rules/no-expression-statements"; +import * as preferImmutableTypes from "#/rules/prefer-immutable-types"; import recommended from "./recommended"; diff --git a/src/configs/no-exceptions.ts b/src/configs/no-exceptions.ts index d067a1451..288aa70d5 100644 --- a/src/configs/no-exceptions.ts +++ b/src/configs/no-exceptions.ts @@ -1,7 +1,7 @@ import { type FlatConfig } from "@typescript-eslint/utils/ts-eslint"; -import { rules } from "#eslint-plugin-functional/rules"; -import { ruleNameScope } from "#eslint-plugin-functional/utils/misc"; +import { rules } from "#/rules"; +import { ruleNameScope } from "#/utils/misc"; export default Object.fromEntries( Object.entries(rules) diff --git a/src/configs/no-mutations.ts b/src/configs/no-mutations.ts index 6b7aa60b0..b839e44e6 100644 --- a/src/configs/no-mutations.ts +++ b/src/configs/no-mutations.ts @@ -1,7 +1,7 @@ import { type FlatConfig } from "@typescript-eslint/utils/ts-eslint"; -import { rules } from "#eslint-plugin-functional/rules"; -import { ruleNameScope } from "#eslint-plugin-functional/utils/misc"; +import { rules } from "#/rules"; +import { ruleNameScope } from "#/utils/misc"; export default Object.fromEntries( Object.entries(rules) diff --git a/src/configs/no-other-paradigms.ts b/src/configs/no-other-paradigms.ts index f06274300..beb8a27b5 100644 --- a/src/configs/no-other-paradigms.ts +++ b/src/configs/no-other-paradigms.ts @@ -1,7 +1,7 @@ import { type FlatConfig } from "@typescript-eslint/utils/ts-eslint"; -import { rules } from "#eslint-plugin-functional/rules"; -import { ruleNameScope } from "#eslint-plugin-functional/utils/misc"; +import { rules } from "#/rules"; +import { ruleNameScope } from "#/utils/misc"; export default Object.fromEntries( Object.entries(rules) diff --git a/src/configs/no-statements.ts b/src/configs/no-statements.ts index 49bda4097..3807aeac1 100644 --- a/src/configs/no-statements.ts +++ b/src/configs/no-statements.ts @@ -1,7 +1,7 @@ import { type FlatConfig } from "@typescript-eslint/utils/ts-eslint"; -import { rules } from "#eslint-plugin-functional/rules"; -import { ruleNameScope } from "#eslint-plugin-functional/utils/misc"; +import { rules } from "#/rules"; +import { ruleNameScope } from "#/utils/misc"; export default Object.fromEntries( Object.entries(rules) diff --git a/src/configs/off.ts b/src/configs/off.ts index c5fbfc094..ca6966b30 100644 --- a/src/configs/off.ts +++ b/src/configs/off.ts @@ -1,7 +1,7 @@ import { type FlatConfig } from "@typescript-eslint/utils/ts-eslint"; -import { rules } from "#eslint-plugin-functional/rules"; -import { ruleNameScope } from "#eslint-plugin-functional/utils/misc"; +import { rules } from "#/rules"; +import { ruleNameScope } from "#/utils/misc"; export default Object.fromEntries( Object.entries(rules).map(([name]) => [`${ruleNameScope}/${name}`, "off"]), diff --git a/src/configs/recommended.ts b/src/configs/recommended.ts index f03fa03e8..a4877d158 100644 --- a/src/configs/recommended.ts +++ b/src/configs/recommended.ts @@ -1,17 +1,17 @@ import { type FlatConfig } from "@typescript-eslint/utils/ts-eslint"; import { Immutability } from "is-immutable-type"; -import { rules } from "#eslint-plugin-functional/rules"; -import * as functionalParameters from "#eslint-plugin-functional/rules/functional-parameters"; -import * as noConditionalStatements from "#eslint-plugin-functional/rules/no-conditional-statements"; -import * as noLet from "#eslint-plugin-functional/rules/no-let"; -import * as noThisExpressions from "#eslint-plugin-functional/rules/no-this-expressions"; -import * as noThrowStatements from "#eslint-plugin-functional/rules/no-throw-statements"; -import * as noTryStatements from "#eslint-plugin-functional/rules/no-try-statements"; -import * as preferImmutableTypes from "#eslint-plugin-functional/rules/prefer-immutable-types"; -import * as typeDeclarationImmutability from "#eslint-plugin-functional/rules/type-declaration-immutability"; -import { RuleEnforcementComparator } from "#eslint-plugin-functional/rules/type-declaration-immutability"; -import { ruleNameScope } from "#eslint-plugin-functional/utils/misc"; +import { rules } from "#/rules"; +import * as functionalParameters from "#/rules/functional-parameters"; +import * as noConditionalStatements from "#/rules/no-conditional-statements"; +import * as noLet from "#/rules/no-let"; +import * as noThisExpressions from "#/rules/no-this-expressions"; +import * as noThrowStatements from "#/rules/no-throw-statements"; +import * as noTryStatements from "#/rules/no-try-statements"; +import * as preferImmutableTypes from "#/rules/prefer-immutable-types"; +import * as typeDeclarationImmutability from "#/rules/type-declaration-immutability"; +import { RuleEnforcementComparator } from "#/rules/type-declaration-immutability"; +import { ruleNameScope } from "#/utils/misc"; const recommended = Object.fromEntries( Object.entries(rules) diff --git a/src/configs/strict.ts b/src/configs/strict.ts index aa0b6c030..cdb8eefdd 100644 --- a/src/configs/strict.ts +++ b/src/configs/strict.ts @@ -1,7 +1,7 @@ import { type FlatConfig } from "@typescript-eslint/utils/ts-eslint"; -import { rules } from "#eslint-plugin-functional/rules"; -import { ruleNameScope } from "#eslint-plugin-functional/utils/misc"; +import { rules } from "#/rules"; +import { ruleNameScope } from "#/utils/misc"; export default Object.fromEntries( Object.entries(rules) diff --git a/src/configs/stylistic.ts b/src/configs/stylistic.ts index 168593f25..a3025e738 100644 --- a/src/configs/stylistic.ts +++ b/src/configs/stylistic.ts @@ -1,7 +1,7 @@ import { type FlatConfig } from "@typescript-eslint/utils/ts-eslint"; -import { rules } from "#eslint-plugin-functional/rules"; -import { ruleNameScope } from "#eslint-plugin-functional/utils/misc"; +import { rules } from "#/rules"; +import { ruleNameScope } from "#/utils/misc"; export default Object.fromEntries( Object.entries(rules) diff --git a/src/flat.ts b/src/flat.ts index b83911651..cc12848be 100644 --- a/src/flat.ts +++ b/src/flat.ts @@ -1,21 +1,21 @@ import { type FlatConfig } from "@typescript-eslint/utils/ts-eslint"; -import all from "#eslint-plugin-functional/configs/all"; -import currying from "#eslint-plugin-functional/configs/currying"; -import disableTypeChecked from "#eslint-plugin-functional/configs/disable-type-checked"; -import externalTypeScriptRecommended from "#eslint-plugin-functional/configs/external-typescript-recommended"; -import externalVanillaRecommended from "#eslint-plugin-functional/configs/external-vanilla-recommended"; -import lite from "#eslint-plugin-functional/configs/lite"; -import noExceptions from "#eslint-plugin-functional/configs/no-exceptions"; -import noMutations from "#eslint-plugin-functional/configs/no-mutations"; -import noOtherParadigms from "#eslint-plugin-functional/configs/no-other-paradigms"; -import noStatements from "#eslint-plugin-functional/configs/no-statements"; -import off from "#eslint-plugin-functional/configs/off"; -import recommended from "#eslint-plugin-functional/configs/recommended"; -import strict from "#eslint-plugin-functional/configs/strict"; -import stylistic from "#eslint-plugin-functional/configs/stylistic"; -import { rules } from "#eslint-plugin-functional/rules"; -import { __VERSION__ } from "#eslint-plugin-functional/utils/constants"; +import all from "#/configs/all"; +import currying from "#/configs/currying"; +import disableTypeChecked from "#/configs/disable-type-checked"; +import externalTypeScriptRecommended from "#/configs/external-typescript-recommended"; +import externalVanillaRecommended from "#/configs/external-vanilla-recommended"; +import lite from "#/configs/lite"; +import noExceptions from "#/configs/no-exceptions"; +import noMutations from "#/configs/no-mutations"; +import noOtherParadigms from "#/configs/no-other-paradigms"; +import noStatements from "#/configs/no-statements"; +import off from "#/configs/off"; +import recommended from "#/configs/recommended"; +import strict from "#/configs/strict"; +import stylistic from "#/configs/stylistic"; +import { rules } from "#/rules"; +import { __VERSION__ } from "#/utils/constants"; const meta = { name: "eslint-plugin-functional", diff --git a/src/options/ignore.ts b/src/options/ignore.ts index 2029134d8..1c5d82bad 100644 --- a/src/options/ignore.ts +++ b/src/options/ignore.ts @@ -3,22 +3,16 @@ import { type JSONSchema4ObjectSchema } from "@typescript-eslint/utils/json-sche import { type RuleContext } from "@typescript-eslint/utils/ts-eslint"; import escapeRegExp from "escape-string-regexp"; -import { - getNodeCode, - getNodeIdentifierTexts, -} from "#eslint-plugin-functional/utils/misc"; -import { type BaseOptions } from "#eslint-plugin-functional/utils/rule"; -import { - isInClass, - isInFunctionBody, -} from "#eslint-plugin-functional/utils/tree"; +import { getNodeCode, getNodeIdentifierTexts } from "#/utils/misc"; +import { type BaseOptions } from "#/utils/rule"; +import { isInClass, isInFunctionBody } from "#/utils/tree"; import { isAssignmentExpression, isClassLike, isMemberExpression, isPropertyDefinition, isThisExpression, -} from "#eslint-plugin-functional/utils/type-guards"; +} from "#/utils/type-guards"; /** * The option to ignore patterns. diff --git a/src/rules/functional-parameters.ts b/src/rules/functional-parameters.ts index 61304395b..08bc46d3c 100644 --- a/src/rules/functional-parameters.ts +++ b/src/rules/functional-parameters.ts @@ -12,14 +12,14 @@ import { shouldIgnorePattern, type IgnoreIdentifierPatternOption, type IgnorePrefixSelectorOption, -} from "#eslint-plugin-functional/options"; -import { ruleNameScope } from "#eslint-plugin-functional/utils/misc"; -import { type ESFunction } from "#eslint-plugin-functional/utils/node-types"; +} from "#/options"; +import { ruleNameScope } from "#/utils/misc"; +import { type ESFunction } from "#/utils/node-types"; import { createRuleUsingFunction, type NamedCreateRuleCustomMeta, type RuleResult, -} from "#eslint-plugin-functional/utils/rule"; +} from "#/utils/rule"; import { isArgument, isGetter, @@ -27,8 +27,8 @@ import { isPropertyAccess, isPropertyName, isSetter, -} from "#eslint-plugin-functional/utils/tree"; -import { isRestElement } from "#eslint-plugin-functional/utils/type-guards"; +} from "#/utils/tree"; +import { isRestElement } from "#/utils/type-guards"; /** * The name of this rule. diff --git a/src/rules/immutable-data.ts b/src/rules/immutable-data.ts index 1854463d5..e5c62c842 100644 --- a/src/rules/immutable-data.ts +++ b/src/rules/immutable-data.ts @@ -15,22 +15,19 @@ import { type IgnoreAccessorPatternOption, type IgnoreClassesOption, type IgnoreIdentifierPatternOption, -} from "#eslint-plugin-functional/options"; -import { - isExpected, - ruleNameScope, -} from "#eslint-plugin-functional/utils/misc"; +} from "#/options"; +import { isExpected, ruleNameScope } from "#/utils/misc"; import { createRule, getTypeOfNode, type NamedCreateRuleCustomMeta, type RuleResult, -} from "#eslint-plugin-functional/utils/rule"; +} from "#/utils/rule"; import { findRootIdentifier, isDefinedByMutableVariable, isInConstructor, -} from "#eslint-plugin-functional/utils/tree"; +} from "#/utils/tree"; import { isArrayConstructorType, isArrayExpression, @@ -41,7 +38,7 @@ import { isNewExpression, isObjectConstructorType, isTSAsExpression, -} from "#eslint-plugin-functional/utils/type-guards"; +} from "#/utils/type-guards"; /** * The name of this rule. diff --git a/src/rules/no-classes.ts b/src/rules/no-classes.ts index df2378e97..6e9752aea 100644 --- a/src/rules/no-classes.ts +++ b/src/rules/no-classes.ts @@ -1,13 +1,13 @@ import { type JSONSchema4 } from "@typescript-eslint/utils/json-schema"; import { type RuleContext } from "@typescript-eslint/utils/ts-eslint"; -import { ruleNameScope } from "#eslint-plugin-functional/utils/misc"; -import { type ESClass } from "#eslint-plugin-functional/utils/node-types"; +import { ruleNameScope } from "#/utils/misc"; +import { type ESClass } from "#/utils/node-types"; import { createRule, type NamedCreateRuleCustomMeta, type RuleResult, -} from "#eslint-plugin-functional/utils/rule"; +} from "#/utils/rule"; /** * The name of this rule. diff --git a/src/rules/no-conditional-statements.ts b/src/rules/no-conditional-statements.ts index ae20989ea..57c436b88 100644 --- a/src/rules/no-conditional-statements.ts +++ b/src/rules/no-conditional-statements.ts @@ -3,14 +3,14 @@ import { type JSONSchema4 } from "@typescript-eslint/utils/json-schema"; import { type RuleContext } from "@typescript-eslint/utils/ts-eslint"; import { type Type } from "typescript"; -import tsApiUtils from "#eslint-plugin-functional/conditional-imports/ts-api-utils"; -import { ruleNameScope } from "#eslint-plugin-functional/utils/misc"; +import tsApiUtils from "#/conditional-imports/ts-api-utils"; +import { ruleNameScope } from "#/utils/misc"; import { createRule, getTypeOfNode, type NamedCreateRuleCustomMeta, type RuleResult, -} from "#eslint-plugin-functional/utils/rule"; +} from "#/utils/rule"; import { isBlockStatement, isBreakStatement, @@ -20,7 +20,7 @@ import { isReturnStatement, isSwitchStatement, isThrowStatement, -} from "#eslint-plugin-functional/utils/type-guards"; +} from "#/utils/type-guards"; /** * The name of this rule. diff --git a/src/rules/no-expression-statements.ts b/src/rules/no-expression-statements.ts index 43294fcfd..9926ec238 100644 --- a/src/rules/no-expression-statements.ts +++ b/src/rules/no-expression-statements.ts @@ -6,27 +6,21 @@ import { import { type RuleContext } from "@typescript-eslint/utils/ts-eslint"; import { deepmerge } from "deepmerge-ts"; -import tsApiUtils from "#eslint-plugin-functional/conditional-imports/ts-api-utils"; -import typescript from "#eslint-plugin-functional/conditional-imports/typescript"; +import tsApiUtils from "#/conditional-imports/ts-api-utils"; +import typescript from "#/conditional-imports/typescript"; import { ignoreCodePatternOptionSchema, shouldIgnorePattern, type IgnoreCodePatternOption, -} from "#eslint-plugin-functional/options"; -import { - isDirectivePrologue, - ruleNameScope, -} from "#eslint-plugin-functional/utils/misc"; +} from "#/options"; +import { isDirectivePrologue, ruleNameScope } from "#/utils/misc"; import { createRule, getTypeOfNode, type NamedCreateRuleCustomMeta, type RuleResult, -} from "#eslint-plugin-functional/utils/rule"; -import { - isCallExpression, - isYieldExpression, -} from "#eslint-plugin-functional/utils/type-guards"; +} from "#/utils/rule"; +import { isCallExpression, isYieldExpression } from "#/utils/type-guards"; /** * The name of this rule. diff --git a/src/rules/no-let.ts b/src/rules/no-let.ts index 591e29955..49e259df0 100644 --- a/src/rules/no-let.ts +++ b/src/rules/no-let.ts @@ -11,14 +11,14 @@ import { shouldIgnoreInFunction, shouldIgnorePattern, type IgnoreIdentifierPatternOption, -} from "#eslint-plugin-functional/options"; -import { ruleNameScope } from "#eslint-plugin-functional/utils/misc"; +} from "#/options"; +import { ruleNameScope } from "#/utils/misc"; import { createRule, type NamedCreateRuleCustomMeta, type RuleResult, -} from "#eslint-plugin-functional/utils/rule"; -import { isInForLoopInitializer } from "#eslint-plugin-functional/utils/tree"; +} from "#/utils/rule"; +import { isInForLoopInitializer } from "#/utils/tree"; /** * The name of this rule. diff --git a/src/rules/no-loop-statements.ts b/src/rules/no-loop-statements.ts index 03c4bebdc..fc43fce66 100644 --- a/src/rules/no-loop-statements.ts +++ b/src/rules/no-loop-statements.ts @@ -1,13 +1,13 @@ import { type JSONSchema4 } from "@typescript-eslint/utils/json-schema"; import { type RuleContext } from "@typescript-eslint/utils/ts-eslint"; -import { ruleNameScope } from "#eslint-plugin-functional/utils/misc"; -import { type ESLoop } from "#eslint-plugin-functional/utils/node-types"; +import { ruleNameScope } from "#/utils/misc"; +import { type ESLoop } from "#/utils/node-types"; import { createRule, type NamedCreateRuleCustomMeta, type RuleResult, -} from "#eslint-plugin-functional/utils/rule"; +} from "#/utils/rule"; /** * The name of this rule. diff --git a/src/rules/no-mixed-types.ts b/src/rules/no-mixed-types.ts index 6e5e725f9..b3011eee8 100644 --- a/src/rules/no-mixed-types.ts +++ b/src/rules/no-mixed-types.ts @@ -2,13 +2,13 @@ import { type TSESTree } from "@typescript-eslint/utils"; import { type JSONSchema4 } from "@typescript-eslint/utils/json-schema"; import { type RuleContext } from "@typescript-eslint/utils/ts-eslint"; -import { ruleNameScope } from "#eslint-plugin-functional/utils/misc"; +import { ruleNameScope } from "#/utils/misc"; import { createRuleUsingFunction, getTypeOfNode, type NamedCreateRuleCustomMeta, type RuleResult, -} from "#eslint-plugin-functional/utils/rule"; +} from "#/utils/rule"; import { isFunctionLikeType, isIdentifier, @@ -20,7 +20,7 @@ import { isTSPropertySignature, isTSTypeLiteral, isTSTypeReference, -} from "#eslint-plugin-functional/utils/type-guards"; +} from "#/utils/type-guards"; /** * The name of this rule. diff --git a/src/rules/no-promise-reject.ts b/src/rules/no-promise-reject.ts index 58330c243..7300fe032 100644 --- a/src/rules/no-promise-reject.ts +++ b/src/rules/no-promise-reject.ts @@ -2,16 +2,13 @@ import { type TSESTree } from "@typescript-eslint/utils"; import { type JSONSchema4 } from "@typescript-eslint/utils/json-schema"; import { type RuleContext } from "@typescript-eslint/utils/ts-eslint"; -import { ruleNameScope } from "#eslint-plugin-functional/utils/misc"; +import { ruleNameScope } from "#/utils/misc"; import { createRule, type NamedCreateRuleCustomMeta, type RuleResult, -} from "#eslint-plugin-functional/utils/rule"; -import { - isIdentifier, - isMemberExpression, -} from "#eslint-plugin-functional/utils/type-guards"; +} from "#/utils/rule"; +import { isIdentifier, isMemberExpression } from "#/utils/type-guards"; /** * The name of this rule. diff --git a/src/rules/no-return-void.ts b/src/rules/no-return-void.ts index 2c9e0bb6c..8563f2c30 100644 --- a/src/rules/no-return-void.ts +++ b/src/rules/no-return-void.ts @@ -1,21 +1,21 @@ import { type JSONSchema4 } from "@typescript-eslint/utils/json-schema"; import { type RuleContext } from "@typescript-eslint/utils/ts-eslint"; -import tsApiUtils from "#eslint-plugin-functional/conditional-imports/ts-api-utils"; -import { ruleNameScope } from "#eslint-plugin-functional/utils/misc"; -import { type ESFunctionType } from "#eslint-plugin-functional/utils/node-types"; +import tsApiUtils from "#/conditional-imports/ts-api-utils"; +import { ruleNameScope } from "#/utils/misc"; +import { type ESFunctionType } from "#/utils/node-types"; import { createRule, getTypeOfNode, type NamedCreateRuleCustomMeta, type RuleResult, -} from "#eslint-plugin-functional/utils/rule"; +} from "#/utils/rule"; import { isFunctionLike, isTSNullKeyword, isTSUndefinedKeyword, isTSVoidKeyword, -} from "#eslint-plugin-functional/utils/type-guards"; +} from "#/utils/type-guards"; /** * The name of this rule. diff --git a/src/rules/no-this-expressions.ts b/src/rules/no-this-expressions.ts index 57b718a37..d11b5fcdf 100644 --- a/src/rules/no-this-expressions.ts +++ b/src/rules/no-this-expressions.ts @@ -2,12 +2,12 @@ import { type TSESTree } from "@typescript-eslint/utils"; import { type JSONSchema4 } from "@typescript-eslint/utils/json-schema"; import { type RuleContext } from "@typescript-eslint/utils/ts-eslint"; -import { ruleNameScope } from "#eslint-plugin-functional/utils/misc"; +import { ruleNameScope } from "#/utils/misc"; import { createRule, type NamedCreateRuleCustomMeta, type RuleResult, -} from "#eslint-plugin-functional/utils/rule"; +} from "#/utils/rule"; /** * The name of this rule. diff --git a/src/rules/no-throw-statements.ts b/src/rules/no-throw-statements.ts index 90b621909..f6cae2d6e 100644 --- a/src/rules/no-throw-statements.ts +++ b/src/rules/no-throw-statements.ts @@ -2,13 +2,13 @@ import { type TSESTree } from "@typescript-eslint/utils"; import { type JSONSchema4 } from "@typescript-eslint/utils/json-schema"; import { type RuleContext } from "@typescript-eslint/utils/ts-eslint"; -import { ruleNameScope } from "#eslint-plugin-functional/utils/misc"; +import { ruleNameScope } from "#/utils/misc"; import { createRule, type NamedCreateRuleCustomMeta, type RuleResult, -} from "#eslint-plugin-functional/utils/rule"; -import { isInFunctionBody } from "#eslint-plugin-functional/utils/tree"; +} from "#/utils/rule"; +import { isInFunctionBody } from "#/utils/tree"; /** * The name of this rule. diff --git a/src/rules/no-try-statements.ts b/src/rules/no-try-statements.ts index 75cde1e91..0699c0093 100644 --- a/src/rules/no-try-statements.ts +++ b/src/rules/no-try-statements.ts @@ -2,12 +2,12 @@ import { type TSESTree } from "@typescript-eslint/utils"; import { type JSONSchema4 } from "@typescript-eslint/utils/json-schema"; import { type RuleContext } from "@typescript-eslint/utils/ts-eslint"; -import { ruleNameScope } from "#eslint-plugin-functional/utils/misc"; +import { ruleNameScope } from "#/utils/misc"; import { createRule, type NamedCreateRuleCustomMeta, type RuleResult, -} from "#eslint-plugin-functional/utils/rule"; +} from "#/utils/rule"; /** * The name of this rule. diff --git a/src/rules/prefer-immutable-types.ts b/src/rules/prefer-immutable-types.ts index ab31d5b62..4ca41f27a 100644 --- a/src/rules/prefer-immutable-types.ts +++ b/src/rules/prefer-immutable-types.ts @@ -16,9 +16,9 @@ import { shouldIgnoreInFunction, shouldIgnorePattern, type IgnoreClassesOption, -} from "#eslint-plugin-functional/options"; -import { ruleNameScope } from "#eslint-plugin-functional/utils/misc"; -import { type ESFunctionType } from "#eslint-plugin-functional/utils/node-types"; +} from "#/options"; +import { ruleNameScope } from "#/utils/misc"; +import { type ESFunctionType } from "#/utils/node-types"; import { createRule, getReturnTypesOfFunction, @@ -27,7 +27,7 @@ import { isImplementationOfOverload, type NamedCreateRuleCustomMeta, type RuleResult, -} from "#eslint-plugin-functional/utils/rule"; +} from "#/utils/rule"; import { hasID, isArrayPattern, @@ -40,7 +40,7 @@ import { isPropertyDefinition, isTSParameterProperty, isTSTypePredicate, -} from "#eslint-plugin-functional/utils/type-guards"; +} from "#/utils/type-guards"; /** * The name of this rule. diff --git a/src/rules/prefer-property-signatures.ts b/src/rules/prefer-property-signatures.ts index 47c4ce6a3..17cde2409 100644 --- a/src/rules/prefer-property-signatures.ts +++ b/src/rules/prefer-property-signatures.ts @@ -2,13 +2,13 @@ import { type TSESTree } from "@typescript-eslint/utils"; import { type JSONSchema4 } from "@typescript-eslint/utils/json-schema"; import { type RuleContext } from "@typescript-eslint/utils/ts-eslint"; -import { ruleNameScope } from "#eslint-plugin-functional/utils/misc"; +import { ruleNameScope } from "#/utils/misc"; import { createRule, type NamedCreateRuleCustomMeta, type RuleResult, -} from "#eslint-plugin-functional/utils/rule"; -import { isInReadonly } from "#eslint-plugin-functional/utils/tree"; +} from "#/utils/rule"; +import { isInReadonly } from "#/utils/tree"; /** * The name of this rule. diff --git a/src/rules/prefer-readonly-type.ts b/src/rules/prefer-readonly-type.ts index 1ba860405..08df96544 100644 --- a/src/rules/prefer-readonly-type.ts +++ b/src/rules/prefer-readonly-type.ts @@ -8,20 +8,17 @@ import { shouldIgnorePattern, type IgnoreAccessorPatternOption, type IgnoreCodePatternOption, -} from "#eslint-plugin-functional/options"; -import { ruleNameScope } from "#eslint-plugin-functional/utils/misc"; -import { type ESArrayTupleType } from "#eslint-plugin-functional/utils/node-types"; +} from "#/options"; +import { ruleNameScope } from "#/utils/misc"; +import { type ESArrayTupleType } from "#/utils/node-types"; import { createRule, getTypeOfNode, type BaseOptions, type NamedCreateRuleCustomMeta, type RuleResult, -} from "#eslint-plugin-functional/utils/rule"; -import { - isInInterface, - isInReturnType, -} from "#eslint-plugin-functional/utils/tree"; +} from "#/utils/rule"; +import { isInInterface, isInReturnType } from "#/utils/tree"; import { isArrayType, isAssignmentPattern, @@ -36,7 +33,7 @@ import { isTSTypeLiteral, isTSTypeOperator, isTSTypeReference, -} from "#eslint-plugin-functional/utils/type-guards"; +} from "#/utils/type-guards"; /** * The name of this rule. diff --git a/src/rules/prefer-tacit.ts b/src/rules/prefer-tacit.ts index 2b9ed5fe8..0aa215c74 100644 --- a/src/rules/prefer-tacit.ts +++ b/src/rules/prefer-tacit.ts @@ -10,24 +10,24 @@ import { import * as semver from "semver"; import { type Type } from "typescript"; -import ts from "#eslint-plugin-functional/conditional-imports/typescript"; -import { ruleNameScope } from "#eslint-plugin-functional/utils/misc"; -import { type ESFunction } from "#eslint-plugin-functional/utils/node-types"; +import ts from "#/conditional-imports/typescript"; +import { ruleNameScope } from "#/utils/misc"; +import { type ESFunction } from "#/utils/node-types"; import { createRule, getTypeOfNode, getTypeOfTSNode, type NamedCreateRuleCustomMeta, type RuleResult, -} from "#eslint-plugin-functional/utils/rule"; -import { isNested } from "#eslint-plugin-functional/utils/tree"; +} from "#/utils/rule"; +import { isNested } from "#/utils/tree"; import { isBlockStatement, isCallExpression, isIdentifier, isMemberExpression, isReturnStatement, -} from "#eslint-plugin-functional/utils/type-guards"; +} from "#/utils/type-guards"; /** * The name of this rule. diff --git a/src/rules/readonly-type.ts b/src/rules/readonly-type.ts index 426778886..3989a91dc 100644 --- a/src/rules/readonly-type.ts +++ b/src/rules/readonly-type.ts @@ -5,13 +5,13 @@ import { type RuleContext, } from "@typescript-eslint/utils/ts-eslint"; -import { ruleNameScope } from "#eslint-plugin-functional/utils/misc"; +import { ruleNameScope } from "#/utils/misc"; import { createRule, type NamedCreateRuleCustomMeta, type RuleResult, -} from "#eslint-plugin-functional/utils/rule"; -import { getReadonly } from "#eslint-plugin-functional/utils/tree"; +} from "#/utils/rule"; +import { getReadonly } from "#/utils/tree"; import { isDefined, isPropertyDefinition, @@ -19,7 +19,7 @@ import { isTSParameterProperty, isTSPropertySignature, isTSTypeReference, -} from "#eslint-plugin-functional/utils/type-guards"; +} from "#/utils/type-guards"; /** * The name of this rule. diff --git a/src/rules/type-declaration-immutability.ts b/src/rules/type-declaration-immutability.ts index d80f2db12..e2b24f3fa 100644 --- a/src/rules/type-declaration-immutability.ts +++ b/src/rules/type-declaration-immutability.ts @@ -11,19 +11,16 @@ import { ignoreIdentifierPatternOptionSchema, shouldIgnorePattern, type IgnoreIdentifierPatternOption, -} from "#eslint-plugin-functional/options"; -import { - getNodeIdentifierTexts, - ruleNameScope, -} from "#eslint-plugin-functional/utils/misc"; -import { type ESTypeDeclaration } from "#eslint-plugin-functional/utils/node-types"; +} from "#/options"; +import { getNodeIdentifierTexts, ruleNameScope } from "#/utils/misc"; +import { type ESTypeDeclaration } from "#/utils/node-types"; import { createRule, getTypeImmutabilityOfNode, type NamedCreateRuleCustomMeta, type RuleResult, -} from "#eslint-plugin-functional/utils/rule"; -import { isTSInterfaceDeclaration } from "#eslint-plugin-functional/utils/type-guards"; +} from "#/utils/rule"; +import { isTSInterfaceDeclaration } from "#/utils/type-guards"; /** * The name of this rule. diff --git a/src/utils/conditional-imports/cjs/ts-api-utils.ts b/src/utils/conditional-imports/cjs/ts-api-utils.ts index a45047cda..9225c88bd 100644 --- a/src/utils/conditional-imports/cjs/ts-api-utils.ts +++ b/src/utils/conditional-imports/cjs/ts-api-utils.ts @@ -1,6 +1,6 @@ import type tsApiUtils from "ts-api-utils"; -import ts from "#eslint-plugin-functional/conditional-imports/typescript"; +import ts from "#/conditional-imports/typescript"; export default (() => { if (ts !== undefined) { diff --git a/src/utils/conditional-imports/esm/ts-api-utils.ts b/src/utils/conditional-imports/esm/ts-api-utils.ts index 4ec432184..ba04bcc00 100644 --- a/src/utils/conditional-imports/esm/ts-api-utils.ts +++ b/src/utils/conditional-imports/esm/ts-api-utils.ts @@ -1,6 +1,6 @@ import type tsApiUtils from "ts-api-utils"; -import ts from "#eslint-plugin-functional/conditional-imports/typescript"; +import ts from "#/conditional-imports/typescript"; export default await ((): Promise => { if (ts !== undefined) { diff --git a/src/utils/misc.ts b/src/utils/misc.ts index 576303ce8..3a8f3600a 100644 --- a/src/utils/misc.ts +++ b/src/utils/misc.ts @@ -1,8 +1,8 @@ import { AST_NODE_TYPES, type TSESTree } from "@typescript-eslint/utils"; import { type RuleContext } from "@typescript-eslint/utils/ts-eslint"; -import { type BaseOptions } from "#eslint-plugin-functional/utils/rule"; -import { getKeyOfValueInObjectExpression } from "#eslint-plugin-functional/utils/tree"; +import { type BaseOptions } from "#/utils/rule"; +import { getKeyOfValueInObjectExpression } from "#/utils/tree"; import { hasID, hasKey, @@ -16,7 +16,7 @@ import { isTSTypeAnnotation, isUnaryExpression, isVariableDeclaration, -} from "#eslint-plugin-functional/utils/type-guards"; +} from "#/utils/type-guards"; export const ruleNameScope = "functional"; diff --git a/src/utils/rule.ts b/src/utils/rule.ts index 49d4be3a0..cb9910e6a 100644 --- a/src/utils/rule.ts +++ b/src/utils/rule.ts @@ -16,10 +16,10 @@ import { } from "is-immutable-type"; import { type Node as TSNode, type Type, type TypeNode } from "typescript"; -import ts from "#eslint-plugin-functional/conditional-imports/typescript"; -import { getImmutabilityOverrides } from "#eslint-plugin-functional/settings"; -import { __VERSION__ } from "#eslint-plugin-functional/utils/constants"; -import { type ESFunction } from "#eslint-plugin-functional/utils/node-types"; +import ts from "#/conditional-imports/typescript"; +import { getImmutabilityOverrides } from "#/settings"; +import { __VERSION__ } from "#/utils/constants"; +import { type ESFunction } from "#/utils/node-types"; /** * Any custom rule meta properties. diff --git a/src/utils/tree.ts b/src/utils/tree.ts index d80d9bc43..7ad1b2c14 100644 --- a/src/utils/tree.ts +++ b/src/utils/tree.ts @@ -2,7 +2,7 @@ import { type TSESTree } from "@typescript-eslint/utils"; import { getParserServices } from "@typescript-eslint/utils/eslint-utils"; import { type RuleContext } from "@typescript-eslint/utils/ts-eslint"; -import typescript from "#eslint-plugin-functional/conditional-imports/typescript"; +import typescript from "#/conditional-imports/typescript"; import { type BaseOptions } from "./rule"; import { diff --git a/src/utils/type-guards.ts b/src/utils/type-guards.ts index cef1c5765..507dc55df 100644 --- a/src/utils/type-guards.ts +++ b/src/utils/type-guards.ts @@ -5,7 +5,7 @@ import { AST_NODE_TYPES, type TSESTree } from "@typescript-eslint/utils"; import { type Type, type UnionType } from "typescript"; -import ts from "#eslint-plugin-functional/conditional-imports/typescript"; +import ts from "#/conditional-imports/typescript"; /* * TS Types. diff --git a/tests/common/ignore-options.test.ts b/tests/common/ignore-options.test.ts index 2c576cb1d..7a7e9101a 100644 --- a/tests/common/ignore-options.test.ts +++ b/tests/common/ignore-options.test.ts @@ -9,16 +9,10 @@ import { type IgnoreAccessorPatternOption, type IgnoreCodePatternOption, type IgnoreIdentifierPatternOption, -} from "#eslint-plugin-functional/options"; -import { getRuleTester } from "#eslint-plugin-functional/tests/helpers/RuleTester"; -import { - configs, - filename, -} from "#eslint-plugin-functional/tests/helpers/configs"; -import { - addFilename, - createDummyRule, -} from "#eslint-plugin-functional/tests/helpers/util"; +} from "#/options"; +import { getRuleTester } from "#/tests/helpers/RuleTester"; +import { configs, filename } from "#/tests/helpers/configs"; +import { addFilename, createDummyRule } from "#/tests/helpers/util"; /** * Create a dummy rule that operates on AssignmentExpression nodes. diff --git a/tests/configs.test.ts b/tests/configs.test.ts index bb657274e..3c6be3bab 100644 --- a/tests/configs.test.ts +++ b/tests/configs.test.ts @@ -1,17 +1,17 @@ import { describe, expect, it } from "vitest"; -import all from "#eslint-plugin-functional/configs/all"; -import currying from "#eslint-plugin-functional/configs/currying"; -import lite from "#eslint-plugin-functional/configs/lite"; -import noExceptions from "#eslint-plugin-functional/configs/no-exceptions"; -import noMutations from "#eslint-plugin-functional/configs/no-mutations"; -import noOtherParadigms from "#eslint-plugin-functional/configs/no-other-paradigms"; -import noStatements from "#eslint-plugin-functional/configs/no-statements"; -import off from "#eslint-plugin-functional/configs/off"; -import recommended from "#eslint-plugin-functional/configs/recommended"; -import strict from "#eslint-plugin-functional/configs/strict"; -import stylistic from "#eslint-plugin-functional/configs/stylistic"; -import { rules } from "#eslint-plugin-functional/rules"; +import all from "#/configs/all"; +import currying from "#/configs/currying"; +import lite from "#/configs/lite"; +import noExceptions from "#/configs/no-exceptions"; +import noMutations from "#/configs/no-mutations"; +import noOtherParadigms from "#/configs/no-other-paradigms"; +import noStatements from "#/configs/no-statements"; +import off from "#/configs/off"; +import recommended from "#/configs/recommended"; +import strict from "#/configs/strict"; +import stylistic from "#/configs/stylistic"; +import { rules } from "#/rules"; describe("Configs", () => { const allRules = Object.values(rules); diff --git a/tests/helpers/testers.ts b/tests/helpers/testers.ts index 5f998a812..10a710f34 100644 --- a/tests/helpers/testers.ts +++ b/tests/helpers/testers.ts @@ -1,4 +1,4 @@ -import { type RuleDefinition } from "#eslint-plugin-functional/utils/rule"; +import { type RuleDefinition } from "#/utils/rule"; import { getRuleTester } from "./RuleTester"; import { configs } from "./configs"; diff --git a/tests/helpers/util.ts b/tests/helpers/util.ts index e9d01457a..97c8dd734 100644 --- a/tests/helpers/util.ts +++ b/tests/helpers/util.ts @@ -13,7 +13,7 @@ import { createRuleUsingFunction, type RuleDefinition, type RuleFunctionsMap, -} from "#eslint-plugin-functional/utils/rule"; +} from "#/utils/rule"; import { filename as dummyFilename } from "./configs"; diff --git a/tests/index.test.ts b/tests/index.test.ts index 103552985..beb143c4f 100644 --- a/tests/index.test.ts +++ b/tests/index.test.ts @@ -6,8 +6,8 @@ import { readdirSync } from "node:fs"; import { describe, expect, it } from "vitest"; -import classic from "#eslint-plugin-functional/classic"; -import flat from "#eslint-plugin-functional/flat"; +import classic from "#/classic"; +import flat from "#/flat"; describe("Flat", () => { it("should have all the rules", () => { diff --git a/tests/rules/functional-parameters/es2015/index.test.ts b/tests/rules/functional-parameters/es2015/index.test.ts index c9b7dfb95..3888ca50c 100644 --- a/tests/rules/functional-parameters/es2015/index.test.ts +++ b/tests/rules/functional-parameters/es2015/index.test.ts @@ -1,8 +1,5 @@ -import { - name, - rule, -} from "#eslint-plugin-functional/rules/functional-parameters"; -import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; +import { name, rule } from "#/rules/functional-parameters"; +import { testRule } from "#/tests/helpers/testers"; import es3Invalid from "../es3/invalid"; import es3Valid from "../es3/valid"; diff --git a/tests/rules/functional-parameters/es2015/invalid.ts b/tests/rules/functional-parameters/es2015/invalid.ts index 775a9948d..4e7120550 100644 --- a/tests/rules/functional-parameters/es2015/invalid.ts +++ b/tests/rules/functional-parameters/es2015/invalid.ts @@ -1,12 +1,12 @@ import { AST_NODE_TYPES } from "@typescript-eslint/utils"; import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/functional-parameters"; +import { type rule } from "#/rules/functional-parameters"; import { type InvalidTestCaseSet, type MessagesOf, type OptionsOf, -} from "#eslint-plugin-functional/tests/helpers/util"; +} from "#/tests/helpers/util"; const tests: Array< InvalidTestCaseSet, OptionsOf> diff --git a/tests/rules/functional-parameters/es2015/valid.ts b/tests/rules/functional-parameters/es2015/valid.ts index d8b5adc88..6279de363 100644 --- a/tests/rules/functional-parameters/es2015/valid.ts +++ b/tests/rules/functional-parameters/es2015/valid.ts @@ -1,10 +1,7 @@ import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/functional-parameters"; -import { - type ValidTestCaseSet, - type OptionsOf, -} from "#eslint-plugin-functional/tests/helpers/util"; +import { type rule } from "#/rules/functional-parameters"; +import { type ValidTestCaseSet, type OptionsOf } from "#/tests/helpers/util"; const tests: Array>> = [ { diff --git a/tests/rules/functional-parameters/es3/index.test.ts b/tests/rules/functional-parameters/es3/index.test.ts index fc6fba014..a68f3c232 100644 --- a/tests/rules/functional-parameters/es3/index.test.ts +++ b/tests/rules/functional-parameters/es3/index.test.ts @@ -1,8 +1,5 @@ -import { - name, - rule, -} from "#eslint-plugin-functional/rules/functional-parameters"; -import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; +import { name, rule } from "#/rules/functional-parameters"; +import { testRule } from "#/tests/helpers/testers"; import invalid from "./invalid"; import valid from "./valid"; diff --git a/tests/rules/functional-parameters/es3/invalid.ts b/tests/rules/functional-parameters/es3/invalid.ts index 9da681428..4ab29505a 100644 --- a/tests/rules/functional-parameters/es3/invalid.ts +++ b/tests/rules/functional-parameters/es3/invalid.ts @@ -1,12 +1,12 @@ import { AST_NODE_TYPES } from "@typescript-eslint/utils"; import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/functional-parameters"; +import { type rule } from "#/rules/functional-parameters"; import { type InvalidTestCaseSet, type MessagesOf, type OptionsOf, -} from "#eslint-plugin-functional/tests/helpers/util"; +} from "#/tests/helpers/util"; const tests: Array< InvalidTestCaseSet, OptionsOf> diff --git a/tests/rules/functional-parameters/es3/valid.ts b/tests/rules/functional-parameters/es3/valid.ts index 0dc52ceea..1ce78b56e 100644 --- a/tests/rules/functional-parameters/es3/valid.ts +++ b/tests/rules/functional-parameters/es3/valid.ts @@ -1,10 +1,7 @@ import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/functional-parameters"; -import { - type OptionsOf, - type ValidTestCaseSet, -} from "#eslint-plugin-functional/tests/helpers/util"; +import { type rule } from "#/rules/functional-parameters"; +import { type OptionsOf, type ValidTestCaseSet } from "#/tests/helpers/util"; const tests: Array>> = [ { diff --git a/tests/rules/immutable-data/ts/array/index.test.ts b/tests/rules/immutable-data/ts/array/index.test.ts index 1aa99db9c..90cfe0f04 100644 --- a/tests/rules/immutable-data/ts/array/index.test.ts +++ b/tests/rules/immutable-data/ts/array/index.test.ts @@ -1,5 +1,5 @@ -import { name, rule } from "#eslint-plugin-functional/rules/immutable-data"; -import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; +import { name, rule } from "#/rules/immutable-data"; +import { testRule } from "#/tests/helpers/testers"; import invalid from "./invalid"; import valid from "./valid"; diff --git a/tests/rules/immutable-data/ts/array/invalid.ts b/tests/rules/immutable-data/ts/array/invalid.ts index f9ebd1ebb..00b42684f 100644 --- a/tests/rules/immutable-data/ts/array/invalid.ts +++ b/tests/rules/immutable-data/ts/array/invalid.ts @@ -1,12 +1,12 @@ import { AST_NODE_TYPES } from "@typescript-eslint/utils"; import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/immutable-data"; +import { type rule } from "#/rules/immutable-data"; import { type InvalidTestCaseSet, type MessagesOf, type OptionsOf, -} from "#eslint-plugin-functional/tests/helpers/util"; +} from "#/tests/helpers/util"; const tests: Array< InvalidTestCaseSet, OptionsOf> diff --git a/tests/rules/immutable-data/ts/array/valid.ts b/tests/rules/immutable-data/ts/array/valid.ts index 37ed38065..e6f05b243 100644 --- a/tests/rules/immutable-data/ts/array/valid.ts +++ b/tests/rules/immutable-data/ts/array/valid.ts @@ -1,10 +1,7 @@ import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/immutable-data"; -import { - type OptionsOf, - type ValidTestCaseSet, -} from "#eslint-plugin-functional/tests/helpers/util"; +import { type rule } from "#/rules/immutable-data"; +import { type OptionsOf, type ValidTestCaseSet } from "#/tests/helpers/util"; const tests: Array>> = [ // Allowed non-array mutation patterns. diff --git a/tests/rules/immutable-data/ts/object/index.test.ts b/tests/rules/immutable-data/ts/object/index.test.ts index 1aa99db9c..90cfe0f04 100644 --- a/tests/rules/immutable-data/ts/object/index.test.ts +++ b/tests/rules/immutable-data/ts/object/index.test.ts @@ -1,5 +1,5 @@ -import { name, rule } from "#eslint-plugin-functional/rules/immutable-data"; -import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; +import { name, rule } from "#/rules/immutable-data"; +import { testRule } from "#/tests/helpers/testers"; import invalid from "./invalid"; import valid from "./valid"; diff --git a/tests/rules/immutable-data/ts/object/invalid.ts b/tests/rules/immutable-data/ts/object/invalid.ts index 90e4542c4..e302c07db 100644 --- a/tests/rules/immutable-data/ts/object/invalid.ts +++ b/tests/rules/immutable-data/ts/object/invalid.ts @@ -1,12 +1,12 @@ import { AST_NODE_TYPES } from "@typescript-eslint/utils"; import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/immutable-data"; +import { type rule } from "#/rules/immutable-data"; import { type InvalidTestCaseSet, type MessagesOf, type OptionsOf, -} from "#eslint-plugin-functional/tests/helpers/util"; +} from "#/tests/helpers/util"; const tests: Array< InvalidTestCaseSet, OptionsOf> diff --git a/tests/rules/immutable-data/ts/object/valid.ts b/tests/rules/immutable-data/ts/object/valid.ts index c41ade6b4..788f81b12 100644 --- a/tests/rules/immutable-data/ts/object/valid.ts +++ b/tests/rules/immutable-data/ts/object/valid.ts @@ -1,10 +1,7 @@ import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/immutable-data"; -import { - type OptionsOf, - type ValidTestCaseSet, -} from "#eslint-plugin-functional/tests/helpers/util"; +import { type rule } from "#/rules/immutable-data"; +import { type OptionsOf, type ValidTestCaseSet } from "#/tests/helpers/util"; const tests: Array>> = [ // Allowed non-object mutation patterns. diff --git a/tests/rules/index.test.ts b/tests/rules/index.test.ts index 9dbcc93c0..11cdaf304 100644 --- a/tests/rules/index.test.ts +++ b/tests/rules/index.test.ts @@ -2,7 +2,7 @@ import * as fs from "node:fs"; import { describe, expect, it } from "vitest"; -import { rules } from "#eslint-plugin-functional/rules"; +import { rules } from "#/rules"; describe("rules index", () => { it("to import all rule files", () => { diff --git a/tests/rules/no-class/es2015/index.test.ts b/tests/rules/no-class/es2015/index.test.ts index 5e59f99e3..98b29c17a 100644 --- a/tests/rules/no-class/es2015/index.test.ts +++ b/tests/rules/no-class/es2015/index.test.ts @@ -1,5 +1,5 @@ -import { name, rule } from "#eslint-plugin-functional/rules/no-classes"; -import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; +import { name, rule } from "#/rules/no-classes"; +import { testRule } from "#/tests/helpers/testers"; import invalid from "./invalid"; import valid from "./valid"; diff --git a/tests/rules/no-class/es2015/invalid.ts b/tests/rules/no-class/es2015/invalid.ts index 363fd8e4b..ea53f88a6 100644 --- a/tests/rules/no-class/es2015/invalid.ts +++ b/tests/rules/no-class/es2015/invalid.ts @@ -1,11 +1,11 @@ import { AST_NODE_TYPES } from "@typescript-eslint/utils"; -import { type rule } from "#eslint-plugin-functional/rules/no-classes"; +import { type rule } from "#/rules/no-classes"; import { type InvalidTestCaseSet, type MessagesOf, type OptionsOf, -} from "#eslint-plugin-functional/tests/helpers/util"; +} from "#/tests/helpers/util"; const tests: Array< InvalidTestCaseSet, OptionsOf> diff --git a/tests/rules/no-class/es2015/valid.ts b/tests/rules/no-class/es2015/valid.ts index 2f8d7790e..47f69625e 100644 --- a/tests/rules/no-class/es2015/valid.ts +++ b/tests/rules/no-class/es2015/valid.ts @@ -1,8 +1,5 @@ -import { type rule } from "#eslint-plugin-functional/rules/no-classes"; -import { - type OptionsOf, - type ValidTestCaseSet, -} from "#eslint-plugin-functional/tests/helpers/util"; +import { type rule } from "#/rules/no-classes"; +import { type OptionsOf, type ValidTestCaseSet } from "#/tests/helpers/util"; const tests: Array>> = [ { diff --git a/tests/rules/no-conditional-statement/ts/index.test.ts b/tests/rules/no-conditional-statement/ts/index.test.ts index 476c9f1e5..55dd79a11 100644 --- a/tests/rules/no-conditional-statement/ts/index.test.ts +++ b/tests/rules/no-conditional-statement/ts/index.test.ts @@ -1,8 +1,5 @@ -import { - name, - rule, -} from "#eslint-plugin-functional/rules/no-conditional-statements"; -import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; +import { name, rule } from "#/rules/no-conditional-statements"; +import { testRule } from "#/tests/helpers/testers"; import invalid from "./invalid"; import valid from "./valid"; diff --git a/tests/rules/no-conditional-statement/ts/invalid.ts b/tests/rules/no-conditional-statement/ts/invalid.ts index 4a1e44578..c655ed880 100644 --- a/tests/rules/no-conditional-statement/ts/invalid.ts +++ b/tests/rules/no-conditional-statement/ts/invalid.ts @@ -1,12 +1,12 @@ import { AST_NODE_TYPES } from "@typescript-eslint/utils"; import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/no-conditional-statements"; +import { type rule } from "#/rules/no-conditional-statements"; import { type InvalidTestCaseSet, type MessagesOf, type OptionsOf, -} from "#eslint-plugin-functional/tests/helpers/util"; +} from "#/tests/helpers/util"; const tests: Array< InvalidTestCaseSet, OptionsOf> diff --git a/tests/rules/no-conditional-statement/ts/valid.ts b/tests/rules/no-conditional-statement/ts/valid.ts index f1406b783..994fd3570 100644 --- a/tests/rules/no-conditional-statement/ts/valid.ts +++ b/tests/rules/no-conditional-statement/ts/valid.ts @@ -1,10 +1,7 @@ import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/no-conditional-statements"; -import { - type OptionsOf, - type ValidTestCaseSet, -} from "#eslint-plugin-functional/tests/helpers/util"; +import { type rule } from "#/rules/no-conditional-statements"; +import { type OptionsOf, type ValidTestCaseSet } from "#/tests/helpers/util"; const tests: Array>> = [ { diff --git a/tests/rules/no-expression-statement/ts/index.test.ts b/tests/rules/no-expression-statement/ts/index.test.ts index a936a7782..16d607b81 100644 --- a/tests/rules/no-expression-statement/ts/index.test.ts +++ b/tests/rules/no-expression-statement/ts/index.test.ts @@ -1,8 +1,5 @@ -import { - name, - rule, -} from "#eslint-plugin-functional/rules/no-expression-statements"; -import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; +import { name, rule } from "#/rules/no-expression-statements"; +import { testRule } from "#/tests/helpers/testers"; import invalid from "./invalid"; import valid from "./valid"; diff --git a/tests/rules/no-expression-statement/ts/invalid.ts b/tests/rules/no-expression-statement/ts/invalid.ts index 5aca5617e..99584b720 100644 --- a/tests/rules/no-expression-statement/ts/invalid.ts +++ b/tests/rules/no-expression-statement/ts/invalid.ts @@ -1,12 +1,12 @@ import { AST_NODE_TYPES } from "@typescript-eslint/utils"; import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/no-expression-statements"; +import { type rule } from "#/rules/no-expression-statements"; import { type InvalidTestCaseSet, type MessagesOf, type OptionsOf, -} from "#eslint-plugin-functional/tests/helpers/util"; +} from "#/tests/helpers/util"; const tests: Array< InvalidTestCaseSet, OptionsOf> diff --git a/tests/rules/no-expression-statement/ts/valid.ts b/tests/rules/no-expression-statement/ts/valid.ts index daa356573..3cbd537a9 100644 --- a/tests/rules/no-expression-statement/ts/valid.ts +++ b/tests/rules/no-expression-statement/ts/valid.ts @@ -1,10 +1,7 @@ import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/no-expression-statements"; -import { - type OptionsOf, - type ValidTestCaseSet, -} from "#eslint-plugin-functional/tests/helpers/util"; +import { type rule } from "#/rules/no-expression-statements"; +import { type OptionsOf, type ValidTestCaseSet } from "#/tests/helpers/util"; const tests: Array>> = [ // Defining variable should still be allowed. diff --git a/tests/rules/no-let/es2015/index.test.ts b/tests/rules/no-let/es2015/index.test.ts index 928694356..be5909c52 100644 --- a/tests/rules/no-let/es2015/index.test.ts +++ b/tests/rules/no-let/es2015/index.test.ts @@ -1,5 +1,5 @@ -import { name, rule } from "#eslint-plugin-functional/rules/no-let"; -import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; +import { name, rule } from "#/rules/no-let"; +import { testRule } from "#/tests/helpers/testers"; import invalid from "./invalid"; import valid from "./valid"; diff --git a/tests/rules/no-let/es2015/invalid.ts b/tests/rules/no-let/es2015/invalid.ts index 3c15852c2..640930abf 100644 --- a/tests/rules/no-let/es2015/invalid.ts +++ b/tests/rules/no-let/es2015/invalid.ts @@ -1,12 +1,12 @@ import { AST_NODE_TYPES } from "@typescript-eslint/utils"; import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/no-let"; +import { type rule } from "#/rules/no-let"; import { type InvalidTestCaseSet, type MessagesOf, type OptionsOf, -} from "#eslint-plugin-functional/tests/helpers/util"; +} from "#/tests/helpers/util"; const tests: Array< InvalidTestCaseSet, OptionsOf> diff --git a/tests/rules/no-let/es2015/valid.ts b/tests/rules/no-let/es2015/valid.ts index df3e9da1a..38b247c96 100644 --- a/tests/rules/no-let/es2015/valid.ts +++ b/tests/rules/no-let/es2015/valid.ts @@ -1,10 +1,7 @@ import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/no-let"; -import { - type OptionsOf, - type ValidTestCaseSet, -} from "#eslint-plugin-functional/tests/helpers/util"; +import { type rule } from "#/rules/no-let"; +import { type OptionsOf, type ValidTestCaseSet } from "#/tests/helpers/util"; const tests: Array>> = [ { diff --git a/tests/rules/no-loop-statement/es2015/index.test.ts b/tests/rules/no-loop-statement/es2015/index.test.ts index 721d26a35..5e8a59484 100644 --- a/tests/rules/no-loop-statement/es2015/index.test.ts +++ b/tests/rules/no-loop-statement/es2015/index.test.ts @@ -1,5 +1,5 @@ -import { name, rule } from "#eslint-plugin-functional/rules/no-loop-statements"; -import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; +import { name, rule } from "#/rules/no-loop-statements"; +import { testRule } from "#/tests/helpers/testers"; import es3Invalid from "../es3/invalid"; import es3Valid from "../es3/valid"; diff --git a/tests/rules/no-loop-statement/es2015/invalid.ts b/tests/rules/no-loop-statement/es2015/invalid.ts index 061fdfbfc..ccca1a5ed 100644 --- a/tests/rules/no-loop-statement/es2015/invalid.ts +++ b/tests/rules/no-loop-statement/es2015/invalid.ts @@ -1,11 +1,11 @@ import { AST_NODE_TYPES } from "@typescript-eslint/utils"; -import { type rule } from "#eslint-plugin-functional/rules/no-loop-statements"; +import { type rule } from "#/rules/no-loop-statements"; import { type InvalidTestCaseSet, type MessagesOf, type OptionsOf, -} from "#eslint-plugin-functional/tests/helpers/util"; +} from "#/tests/helpers/util"; const tests: Array< InvalidTestCaseSet, OptionsOf> diff --git a/tests/rules/no-loop-statement/es2015/valid.ts b/tests/rules/no-loop-statement/es2015/valid.ts index 6d015079d..779391f74 100644 --- a/tests/rules/no-loop-statement/es2015/valid.ts +++ b/tests/rules/no-loop-statement/es2015/valid.ts @@ -1,8 +1,5 @@ -import { type rule } from "#eslint-plugin-functional/rules/no-loop-statements"; -import { - type OptionsOf, - type ValidTestCaseSet, -} from "#eslint-plugin-functional/tests/helpers/util"; +import { type rule } from "#/rules/no-loop-statements"; +import { type OptionsOf, type ValidTestCaseSet } from "#/tests/helpers/util"; const tests: Array>> = []; diff --git a/tests/rules/no-loop-statement/es3/index.test.ts b/tests/rules/no-loop-statement/es3/index.test.ts index b8dc2c34f..181d2036c 100644 --- a/tests/rules/no-loop-statement/es3/index.test.ts +++ b/tests/rules/no-loop-statement/es3/index.test.ts @@ -1,5 +1,5 @@ -import { name, rule } from "#eslint-plugin-functional/rules/no-loop-statements"; -import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; +import { name, rule } from "#/rules/no-loop-statements"; +import { testRule } from "#/tests/helpers/testers"; import invalid from "./invalid"; import valid from "./valid"; diff --git a/tests/rules/no-loop-statement/es3/invalid.ts b/tests/rules/no-loop-statement/es3/invalid.ts index 697017950..f5d6eab3b 100644 --- a/tests/rules/no-loop-statement/es3/invalid.ts +++ b/tests/rules/no-loop-statement/es3/invalid.ts @@ -1,11 +1,11 @@ import { AST_NODE_TYPES } from "@typescript-eslint/utils"; -import { type rule } from "#eslint-plugin-functional/rules/no-loop-statements"; +import { type rule } from "#/rules/no-loop-statements"; import { type InvalidTestCaseSet, type MessagesOf, type OptionsOf, -} from "#eslint-plugin-functional/tests/helpers/util"; +} from "#/tests/helpers/util"; const tests: Array< InvalidTestCaseSet, OptionsOf> diff --git a/tests/rules/no-loop-statement/es3/valid.ts b/tests/rules/no-loop-statement/es3/valid.ts index 623f4f1f1..2b32aa6b3 100644 --- a/tests/rules/no-loop-statement/es3/valid.ts +++ b/tests/rules/no-loop-statement/es3/valid.ts @@ -1,8 +1,5 @@ -import { type rule } from "#eslint-plugin-functional/rules/no-loop-statements"; -import { - type OptionsOf, - type ValidTestCaseSet, -} from "#eslint-plugin-functional/tests/helpers/util"; +import { type rule } from "#/rules/no-loop-statements"; +import { type OptionsOf, type ValidTestCaseSet } from "#/tests/helpers/util"; const tests: Array>> = [ { diff --git a/tests/rules/no-mixed-type/ts/index.test.ts b/tests/rules/no-mixed-type/ts/index.test.ts index 6f79d7823..7e59c4468 100644 --- a/tests/rules/no-mixed-type/ts/index.test.ts +++ b/tests/rules/no-mixed-type/ts/index.test.ts @@ -1,5 +1,5 @@ -import { name, rule } from "#eslint-plugin-functional/rules/no-mixed-types"; -import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; +import { name, rule } from "#/rules/no-mixed-types"; +import { testRule } from "#/tests/helpers/testers"; import invalid from "./invalid"; import valid from "./valid"; diff --git a/tests/rules/no-mixed-type/ts/invalid.ts b/tests/rules/no-mixed-type/ts/invalid.ts index c201549c4..290984e56 100644 --- a/tests/rules/no-mixed-type/ts/invalid.ts +++ b/tests/rules/no-mixed-type/ts/invalid.ts @@ -1,9 +1,9 @@ -import { type rule } from "#eslint-plugin-functional/rules/no-mixed-types"; +import { type rule } from "#/rules/no-mixed-types"; import { type InvalidTestCaseSet, type MessagesOf, type OptionsOf, -} from "#eslint-plugin-functional/tests/helpers/util"; +} from "#/tests/helpers/util"; const tests: Array< InvalidTestCaseSet, OptionsOf> diff --git a/tests/rules/no-mixed-type/ts/valid.ts b/tests/rules/no-mixed-type/ts/valid.ts index bbd1a229f..5395762f4 100644 --- a/tests/rules/no-mixed-type/ts/valid.ts +++ b/tests/rules/no-mixed-type/ts/valid.ts @@ -1,10 +1,7 @@ import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/no-mixed-types"; -import { - type OptionsOf, - type ValidTestCaseSet, -} from "#eslint-plugin-functional/tests/helpers/util"; +import { type rule } from "#/rules/no-mixed-types"; +import { type OptionsOf, type ValidTestCaseSet } from "#/tests/helpers/util"; const tests: Array>> = [ // // Only properties should not produce failures. diff --git a/tests/rules/no-promise-reject/es2015/index.test.ts b/tests/rules/no-promise-reject/es2015/index.test.ts index 0847b2d90..ec1ea3c69 100644 --- a/tests/rules/no-promise-reject/es2015/index.test.ts +++ b/tests/rules/no-promise-reject/es2015/index.test.ts @@ -1,5 +1,5 @@ -import { name, rule } from "#eslint-plugin-functional/rules/no-promise-reject"; -import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; +import { name, rule } from "#/rules/no-promise-reject"; +import { testRule } from "#/tests/helpers/testers"; import invalid from "./invalid"; import valid from "./valid"; diff --git a/tests/rules/no-promise-reject/es2015/invalid.ts b/tests/rules/no-promise-reject/es2015/invalid.ts index caeecc2cb..9ccb1964c 100644 --- a/tests/rules/no-promise-reject/es2015/invalid.ts +++ b/tests/rules/no-promise-reject/es2015/invalid.ts @@ -1,12 +1,12 @@ import { AST_NODE_TYPES } from "@typescript-eslint/utils"; import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/no-promise-reject"; +import { type rule } from "#/rules/no-promise-reject"; import { type InvalidTestCaseSet, type MessagesOf, type OptionsOf, -} from "#eslint-plugin-functional/tests/helpers/util"; +} from "#/tests/helpers/util"; const tests: Array< InvalidTestCaseSet, OptionsOf> diff --git a/tests/rules/no-promise-reject/es2015/valid.ts b/tests/rules/no-promise-reject/es2015/valid.ts index c16a96fea..b9d12dc89 100644 --- a/tests/rules/no-promise-reject/es2015/valid.ts +++ b/tests/rules/no-promise-reject/es2015/valid.ts @@ -1,10 +1,7 @@ import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/no-promise-reject"; -import { - type OptionsOf, - type ValidTestCaseSet, -} from "#eslint-plugin-functional/tests/helpers/util"; +import { type rule } from "#/rules/no-promise-reject"; +import { type OptionsOf, type ValidTestCaseSet } from "#/tests/helpers/util"; const tests: Array>> = [ { diff --git a/tests/rules/no-return-void/ts/index.test.ts b/tests/rules/no-return-void/ts/index.test.ts index 4700660e7..22bd874c4 100644 --- a/tests/rules/no-return-void/ts/index.test.ts +++ b/tests/rules/no-return-void/ts/index.test.ts @@ -1,5 +1,5 @@ -import { name, rule } from "#eslint-plugin-functional/rules/no-return-void"; -import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; +import { name, rule } from "#/rules/no-return-void"; +import { testRule } from "#/tests/helpers/testers"; import invalid from "./invalid"; import valid from "./valid"; diff --git a/tests/rules/no-return-void/ts/invalid.ts b/tests/rules/no-return-void/ts/invalid.ts index 460fea55e..67e980098 100644 --- a/tests/rules/no-return-void/ts/invalid.ts +++ b/tests/rules/no-return-void/ts/invalid.ts @@ -1,12 +1,12 @@ import { AST_NODE_TYPES } from "@typescript-eslint/utils"; import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/no-return-void"; +import { type rule } from "#/rules/no-return-void"; import { type InvalidTestCaseSet, type MessagesOf, type OptionsOf, -} from "#eslint-plugin-functional/tests/helpers/util"; +} from "#/tests/helpers/util"; const tests: Array< InvalidTestCaseSet, OptionsOf> diff --git a/tests/rules/no-return-void/ts/valid.ts b/tests/rules/no-return-void/ts/valid.ts index 6035b3329..e9985bce3 100644 --- a/tests/rules/no-return-void/ts/valid.ts +++ b/tests/rules/no-return-void/ts/valid.ts @@ -1,10 +1,7 @@ import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/no-return-void"; -import { - type OptionsOf, - type ValidTestCaseSet, -} from "#eslint-plugin-functional/tests/helpers/util"; +import { type rule } from "#/rules/no-return-void"; +import { type OptionsOf, type ValidTestCaseSet } from "#/tests/helpers/util"; const tests: Array>> = [ { diff --git a/tests/rules/no-this-expression/es3/index.test.ts b/tests/rules/no-this-expression/es3/index.test.ts index ba5d49f64..acc5b08cc 100644 --- a/tests/rules/no-this-expression/es3/index.test.ts +++ b/tests/rules/no-this-expression/es3/index.test.ts @@ -1,8 +1,5 @@ -import { - name, - rule, -} from "#eslint-plugin-functional/rules/no-this-expressions"; -import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; +import { name, rule } from "#/rules/no-this-expressions"; +import { testRule } from "#/tests/helpers/testers"; import invalid from "./invalid"; import valid from "./valid"; diff --git a/tests/rules/no-this-expression/es3/invalid.ts b/tests/rules/no-this-expression/es3/invalid.ts index 88ad6e9bc..980f21f76 100644 --- a/tests/rules/no-this-expression/es3/invalid.ts +++ b/tests/rules/no-this-expression/es3/invalid.ts @@ -1,11 +1,11 @@ import { AST_NODE_TYPES } from "@typescript-eslint/utils"; -import { type rule } from "#eslint-plugin-functional/rules/no-this-expressions"; +import { type rule } from "#/rules/no-this-expressions"; import { type InvalidTestCaseSet, type MessagesOf, type OptionsOf, -} from "#eslint-plugin-functional/tests/helpers/util"; +} from "#/tests/helpers/util"; const tests: Array< InvalidTestCaseSet, OptionsOf> diff --git a/tests/rules/no-this-expression/es3/valid.ts b/tests/rules/no-this-expression/es3/valid.ts index 8db6f1cdb..80dfd1e8c 100644 --- a/tests/rules/no-this-expression/es3/valid.ts +++ b/tests/rules/no-this-expression/es3/valid.ts @@ -1,8 +1,5 @@ -import { type rule } from "#eslint-plugin-functional/rules/no-this-expressions"; -import { - type OptionsOf, - type ValidTestCaseSet, -} from "#eslint-plugin-functional/tests/helpers/util"; +import { type rule } from "#/rules/no-this-expressions"; +import { type OptionsOf, type ValidTestCaseSet } from "#/tests/helpers/util"; const tests: Array>> = [ { diff --git a/tests/rules/no-throw-statement/es2016/index.test.ts b/tests/rules/no-throw-statement/es2016/index.test.ts index 631181739..d839b0cb8 100644 --- a/tests/rules/no-throw-statement/es2016/index.test.ts +++ b/tests/rules/no-throw-statement/es2016/index.test.ts @@ -1,8 +1,5 @@ -import { - name, - rule, -} from "#eslint-plugin-functional/rules/no-throw-statements"; -import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; +import { name, rule } from "#/rules/no-throw-statements"; +import { testRule } from "#/tests/helpers/testers"; import es3Invalid from "../es3/invalid"; import es3Valid from "../es3/valid"; diff --git a/tests/rules/no-throw-statement/es2016/invalid.ts b/tests/rules/no-throw-statement/es2016/invalid.ts index 8c7b342d4..99e511d7a 100644 --- a/tests/rules/no-throw-statement/es2016/invalid.ts +++ b/tests/rules/no-throw-statement/es2016/invalid.ts @@ -1,12 +1,12 @@ import { AST_NODE_TYPES } from "@typescript-eslint/utils"; import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/no-throw-statements"; +import { type rule } from "#/rules/no-throw-statements"; import { type InvalidTestCaseSet, type MessagesOf, type OptionsOf, -} from "#eslint-plugin-functional/tests/helpers/util"; +} from "#/tests/helpers/util"; const tests: Array< InvalidTestCaseSet, OptionsOf> diff --git a/tests/rules/no-throw-statement/es2016/valid.ts b/tests/rules/no-throw-statement/es2016/valid.ts index b7aafaf72..e3968e883 100644 --- a/tests/rules/no-throw-statement/es2016/valid.ts +++ b/tests/rules/no-throw-statement/es2016/valid.ts @@ -1,10 +1,7 @@ import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/no-throw-statements"; -import { - type OptionsOf, - type ValidTestCaseSet, -} from "#eslint-plugin-functional/tests/helpers/util"; +import { type rule } from "#/rules/no-throw-statements"; +import { type OptionsOf, type ValidTestCaseSet } from "#/tests/helpers/util"; const tests: Array>> = [ { diff --git a/tests/rules/no-throw-statement/es3/index.test.ts b/tests/rules/no-throw-statement/es3/index.test.ts index e214dea6a..548e95dfd 100644 --- a/tests/rules/no-throw-statement/es3/index.test.ts +++ b/tests/rules/no-throw-statement/es3/index.test.ts @@ -1,8 +1,5 @@ -import { - name, - rule, -} from "#eslint-plugin-functional/rules/no-throw-statements"; -import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; +import { name, rule } from "#/rules/no-throw-statements"; +import { testRule } from "#/tests/helpers/testers"; import invalid from "./invalid"; import valid from "./valid"; diff --git a/tests/rules/no-throw-statement/es3/invalid.ts b/tests/rules/no-throw-statement/es3/invalid.ts index f8501e49c..1d131a73f 100644 --- a/tests/rules/no-throw-statement/es3/invalid.ts +++ b/tests/rules/no-throw-statement/es3/invalid.ts @@ -1,12 +1,12 @@ import { AST_NODE_TYPES } from "@typescript-eslint/utils"; import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/no-throw-statements"; +import { type rule } from "#/rules/no-throw-statements"; import { type InvalidTestCaseSet, type MessagesOf, type OptionsOf, -} from "#eslint-plugin-functional/tests/helpers/util"; +} from "#/tests/helpers/util"; const tests: Array< InvalidTestCaseSet, OptionsOf> diff --git a/tests/rules/no-throw-statement/es3/valid.ts b/tests/rules/no-throw-statement/es3/valid.ts index 02a9838c3..2f2ab2309 100644 --- a/tests/rules/no-throw-statement/es3/valid.ts +++ b/tests/rules/no-throw-statement/es3/valid.ts @@ -1,10 +1,7 @@ import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/no-throw-statements"; -import { - type OptionsOf, - type ValidTestCaseSet, -} from "#eslint-plugin-functional/tests/helpers/util"; +import { type rule } from "#/rules/no-throw-statements"; +import { type OptionsOf, type ValidTestCaseSet } from "#/tests/helpers/util"; const tests: Array>> = [ { diff --git a/tests/rules/no-try-statement/es3/index.test.ts b/tests/rules/no-try-statement/es3/index.test.ts index b9ab7dded..d9e71d35f 100644 --- a/tests/rules/no-try-statement/es3/index.test.ts +++ b/tests/rules/no-try-statement/es3/index.test.ts @@ -1,5 +1,5 @@ -import { name, rule } from "#eslint-plugin-functional/rules/no-try-statements"; -import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; +import { name, rule } from "#/rules/no-try-statements"; +import { testRule } from "#/tests/helpers/testers"; import invalid from "./invalid"; import valid from "./valid"; diff --git a/tests/rules/no-try-statement/es3/invalid.ts b/tests/rules/no-try-statement/es3/invalid.ts index 27523e86d..1a27be863 100644 --- a/tests/rules/no-try-statement/es3/invalid.ts +++ b/tests/rules/no-try-statement/es3/invalid.ts @@ -1,11 +1,11 @@ import { AST_NODE_TYPES } from "@typescript-eslint/utils"; -import { type rule } from "#eslint-plugin-functional/rules/no-try-statements"; +import { type rule } from "#/rules/no-try-statements"; import { type InvalidTestCaseSet, type MessagesOf, type OptionsOf, -} from "#eslint-plugin-functional/tests/helpers/util"; +} from "#/tests/helpers/util"; const tests: Array< InvalidTestCaseSet, OptionsOf> diff --git a/tests/rules/no-try-statement/es3/valid.ts b/tests/rules/no-try-statement/es3/valid.ts index e65386e32..ed0b97114 100644 --- a/tests/rules/no-try-statement/es3/valid.ts +++ b/tests/rules/no-try-statement/es3/valid.ts @@ -1,8 +1,5 @@ -import { type rule } from "#eslint-plugin-functional/rules/no-try-statements"; -import { - type OptionsOf, - type ValidTestCaseSet, -} from "#eslint-plugin-functional/tests/helpers/util"; +import { type rule } from "#/rules/no-try-statements"; +import { type OptionsOf, type ValidTestCaseSet } from "#/tests/helpers/util"; const tests: Array>> = [ { diff --git a/tests/rules/prefer-immutable-types/ts/parameters/index.test.ts b/tests/rules/prefer-immutable-types/ts/parameters/index.test.ts index da3ffba70..d2429ecf5 100644 --- a/tests/rules/prefer-immutable-types/ts/parameters/index.test.ts +++ b/tests/rules/prefer-immutable-types/ts/parameters/index.test.ts @@ -1,8 +1,5 @@ -import { - name, - rule, -} from "#eslint-plugin-functional/rules/prefer-immutable-types"; -import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; +import { name, rule } from "#/rules/prefer-immutable-types"; +import { testRule } from "#/tests/helpers/testers"; import invalid from "./invalid"; import valid from "./valid"; diff --git a/tests/rules/prefer-immutable-types/ts/parameters/invalid.ts b/tests/rules/prefer-immutable-types/ts/parameters/invalid.ts index cc2a297e3..2d351458e 100644 --- a/tests/rules/prefer-immutable-types/ts/parameters/invalid.ts +++ b/tests/rules/prefer-immutable-types/ts/parameters/invalid.ts @@ -1,12 +1,12 @@ import { AST_NODE_TYPES } from "@typescript-eslint/utils"; import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/prefer-immutable-types"; +import { type rule } from "#/rules/prefer-immutable-types"; import { type InvalidTestCaseSet, type MessagesOf, type OptionsOf, -} from "#eslint-plugin-functional/tests/helpers/util"; +} from "#/tests/helpers/util"; const tests: Array< InvalidTestCaseSet, OptionsOf> diff --git a/tests/rules/prefer-immutable-types/ts/parameters/valid.ts b/tests/rules/prefer-immutable-types/ts/parameters/valid.ts index 17c1edf52..3bf8c0766 100644 --- a/tests/rules/prefer-immutable-types/ts/parameters/valid.ts +++ b/tests/rules/prefer-immutable-types/ts/parameters/valid.ts @@ -1,10 +1,7 @@ import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/prefer-immutable-types"; -import { - type OptionsOf, - type ValidTestCaseSet, -} from "#eslint-plugin-functional/tests/helpers/util"; +import { type rule } from "#/rules/prefer-immutable-types"; +import { type OptionsOf, type ValidTestCaseSet } from "#/tests/helpers/util"; const tests: Array>> = [ { diff --git a/tests/rules/prefer-immutable-types/ts/return-types/index.test.ts b/tests/rules/prefer-immutable-types/ts/return-types/index.test.ts index da3ffba70..d2429ecf5 100644 --- a/tests/rules/prefer-immutable-types/ts/return-types/index.test.ts +++ b/tests/rules/prefer-immutable-types/ts/return-types/index.test.ts @@ -1,8 +1,5 @@ -import { - name, - rule, -} from "#eslint-plugin-functional/rules/prefer-immutable-types"; -import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; +import { name, rule } from "#/rules/prefer-immutable-types"; +import { testRule } from "#/tests/helpers/testers"; import invalid from "./invalid"; import valid from "./valid"; diff --git a/tests/rules/prefer-immutable-types/ts/return-types/invalid.ts b/tests/rules/prefer-immutable-types/ts/return-types/invalid.ts index 6cc042458..238528b99 100644 --- a/tests/rules/prefer-immutable-types/ts/return-types/invalid.ts +++ b/tests/rules/prefer-immutable-types/ts/return-types/invalid.ts @@ -1,12 +1,12 @@ import { AST_NODE_TYPES } from "@typescript-eslint/utils"; import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/prefer-immutable-types"; +import { type rule } from "#/rules/prefer-immutable-types"; import { type InvalidTestCaseSet, type MessagesOf, type OptionsOf, -} from "#eslint-plugin-functional/tests/helpers/util"; +} from "#/tests/helpers/util"; const tests: Array< InvalidTestCaseSet, OptionsOf> diff --git a/tests/rules/prefer-immutable-types/ts/return-types/valid.ts b/tests/rules/prefer-immutable-types/ts/return-types/valid.ts index 1d8a42105..1d64e9d5e 100644 --- a/tests/rules/prefer-immutable-types/ts/return-types/valid.ts +++ b/tests/rules/prefer-immutable-types/ts/return-types/valid.ts @@ -1,10 +1,7 @@ import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/prefer-immutable-types"; -import { - type OptionsOf, - type ValidTestCaseSet, -} from "#eslint-plugin-functional/tests/helpers/util"; +import { type rule } from "#/rules/prefer-immutable-types"; +import { type OptionsOf, type ValidTestCaseSet } from "#/tests/helpers/util"; const tests: Array>> = [ { diff --git a/tests/rules/prefer-immutable-types/ts/variables/index.test.ts b/tests/rules/prefer-immutable-types/ts/variables/index.test.ts index da3ffba70..d2429ecf5 100644 --- a/tests/rules/prefer-immutable-types/ts/variables/index.test.ts +++ b/tests/rules/prefer-immutable-types/ts/variables/index.test.ts @@ -1,8 +1,5 @@ -import { - name, - rule, -} from "#eslint-plugin-functional/rules/prefer-immutable-types"; -import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; +import { name, rule } from "#/rules/prefer-immutable-types"; +import { testRule } from "#/tests/helpers/testers"; import invalid from "./invalid"; import valid from "./valid"; diff --git a/tests/rules/prefer-immutable-types/ts/variables/invalid.ts b/tests/rules/prefer-immutable-types/ts/variables/invalid.ts index a4a28f42f..c724f0dcb 100644 --- a/tests/rules/prefer-immutable-types/ts/variables/invalid.ts +++ b/tests/rules/prefer-immutable-types/ts/variables/invalid.ts @@ -1,12 +1,12 @@ import { AST_NODE_TYPES } from "@typescript-eslint/utils"; import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/prefer-immutable-types"; +import { type rule } from "#/rules/prefer-immutable-types"; import { type InvalidTestCaseSet, type MessagesOf, type OptionsOf, -} from "#eslint-plugin-functional/tests/helpers/util"; +} from "#/tests/helpers/util"; const tests: Array< InvalidTestCaseSet, OptionsOf> diff --git a/tests/rules/prefer-immutable-types/ts/variables/valid.ts b/tests/rules/prefer-immutable-types/ts/variables/valid.ts index 0d481a1ae..811e58f88 100644 --- a/tests/rules/prefer-immutable-types/ts/variables/valid.ts +++ b/tests/rules/prefer-immutable-types/ts/variables/valid.ts @@ -1,10 +1,7 @@ import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/prefer-immutable-types"; -import { - type OptionsOf, - type ValidTestCaseSet, -} from "#eslint-plugin-functional/tests/helpers/util"; +import { type rule } from "#/rules/prefer-immutable-types"; +import { type OptionsOf, type ValidTestCaseSet } from "#/tests/helpers/util"; const tests: Array>> = [ { diff --git a/tests/rules/prefer-property-signatures/ts/index.test.ts b/tests/rules/prefer-property-signatures/ts/index.test.ts index 67f189a75..dfc32f129 100644 --- a/tests/rules/prefer-property-signatures/ts/index.test.ts +++ b/tests/rules/prefer-property-signatures/ts/index.test.ts @@ -1,8 +1,5 @@ -import { - name, - rule, -} from "#eslint-plugin-functional/rules/prefer-property-signatures"; -import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; +import { name, rule } from "#/rules/prefer-property-signatures"; +import { testRule } from "#/tests/helpers/testers"; import invalid from "./invalid"; import valid from "./valid"; diff --git a/tests/rules/prefer-property-signatures/ts/invalid.ts b/tests/rules/prefer-property-signatures/ts/invalid.ts index 73896549e..7c5cc46cd 100644 --- a/tests/rules/prefer-property-signatures/ts/invalid.ts +++ b/tests/rules/prefer-property-signatures/ts/invalid.ts @@ -1,12 +1,12 @@ import { AST_NODE_TYPES } from "@typescript-eslint/utils"; import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/prefer-property-signatures"; +import { type rule } from "#/rules/prefer-property-signatures"; import { type InvalidTestCaseSet, type MessagesOf, type OptionsOf, -} from "#eslint-plugin-functional/tests/helpers/util"; +} from "#/tests/helpers/util"; const tests: Array< InvalidTestCaseSet, OptionsOf> diff --git a/tests/rules/prefer-property-signatures/ts/valid.ts b/tests/rules/prefer-property-signatures/ts/valid.ts index 8a7c23c2f..c25235b57 100644 --- a/tests/rules/prefer-property-signatures/ts/valid.ts +++ b/tests/rules/prefer-property-signatures/ts/valid.ts @@ -1,10 +1,7 @@ import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/prefer-property-signatures"; -import { - type OptionsOf, - type ValidTestCaseSet, -} from "#eslint-plugin-functional/tests/helpers/util"; +import { type rule } from "#/rules/prefer-property-signatures"; +import { type OptionsOf, type ValidTestCaseSet } from "#/tests/helpers/util"; const tests: Array>> = [ { diff --git a/tests/rules/prefer-readonly-type/ts/index.test.ts b/tests/rules/prefer-readonly-type/ts/index.test.ts index cf130cf56..45256beaa 100644 --- a/tests/rules/prefer-readonly-type/ts/index.test.ts +++ b/tests/rules/prefer-readonly-type/ts/index.test.ts @@ -1,8 +1,5 @@ -import { - name, - rule, -} from "#eslint-plugin-functional/rules/prefer-readonly-type"; -import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; +import { name, rule } from "#/rules/prefer-readonly-type"; +import { testRule } from "#/tests/helpers/testers"; import invalid from "./invalid"; import valid from "./valid"; diff --git a/tests/rules/prefer-readonly-type/ts/invalid.ts b/tests/rules/prefer-readonly-type/ts/invalid.ts index f2441543e..89d2af373 100644 --- a/tests/rules/prefer-readonly-type/ts/invalid.ts +++ b/tests/rules/prefer-readonly-type/ts/invalid.ts @@ -1,12 +1,12 @@ import { AST_NODE_TYPES } from "@typescript-eslint/utils"; import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/prefer-readonly-type"; +import { type rule } from "#/rules/prefer-readonly-type"; import { type InvalidTestCaseSet, type MessagesOf, type OptionsOf, -} from "#eslint-plugin-functional/tests/helpers/util"; +} from "#/tests/helpers/util"; const tests: Array< InvalidTestCaseSet, OptionsOf> diff --git a/tests/rules/prefer-readonly-type/ts/valid.ts b/tests/rules/prefer-readonly-type/ts/valid.ts index e2cfbae35..70412b09b 100644 --- a/tests/rules/prefer-readonly-type/ts/valid.ts +++ b/tests/rules/prefer-readonly-type/ts/valid.ts @@ -1,10 +1,7 @@ import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/prefer-readonly-type"; -import { - type OptionsOf, - type ValidTestCaseSet, -} from "#eslint-plugin-functional/tests/helpers/util"; +import { type rule } from "#/rules/prefer-readonly-type"; +import { type OptionsOf, type ValidTestCaseSet } from "#/tests/helpers/util"; const tests: Array>> = [ // Should not fail on explicit ReadonlyArray parameter. diff --git a/tests/rules/prefer-tacit/ts/index.test.ts b/tests/rules/prefer-tacit/ts/index.test.ts index 62d9f935f..fca4ac933 100644 --- a/tests/rules/prefer-tacit/ts/index.test.ts +++ b/tests/rules/prefer-tacit/ts/index.test.ts @@ -1,5 +1,5 @@ -import { name, rule } from "#eslint-plugin-functional/rules/prefer-tacit"; -import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; +import { name, rule } from "#/rules/prefer-tacit"; +import { testRule } from "#/tests/helpers/testers"; import invalid from "./invalid"; import valid from "./valid"; diff --git a/tests/rules/prefer-tacit/ts/invalid.ts b/tests/rules/prefer-tacit/ts/invalid.ts index 21e775a23..c1a4ce9bc 100644 --- a/tests/rules/prefer-tacit/ts/invalid.ts +++ b/tests/rules/prefer-tacit/ts/invalid.ts @@ -1,12 +1,12 @@ import { AST_NODE_TYPES } from "@typescript-eslint/utils"; import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/prefer-tacit"; +import { type rule } from "#/rules/prefer-tacit"; import { type InvalidTestCaseSet, type MessagesOf, type OptionsOf, -} from "#eslint-plugin-functional/tests/helpers/util"; +} from "#/tests/helpers/util"; const tests: Array< InvalidTestCaseSet, OptionsOf> diff --git a/tests/rules/prefer-tacit/ts/valid.ts b/tests/rules/prefer-tacit/ts/valid.ts index 39630206c..3d65647b2 100644 --- a/tests/rules/prefer-tacit/ts/valid.ts +++ b/tests/rules/prefer-tacit/ts/valid.ts @@ -1,10 +1,7 @@ import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/prefer-tacit"; -import { - type OptionsOf, - type ValidTestCaseSet, -} from "#eslint-plugin-functional/tests/helpers/util"; +import { type rule } from "#/rules/prefer-tacit"; +import { type OptionsOf, type ValidTestCaseSet } from "#/tests/helpers/util"; const tests: Array>> = [ { diff --git a/tests/rules/readonly-type/ts/index.test.ts b/tests/rules/readonly-type/ts/index.test.ts index 693e54406..5e21e2474 100644 --- a/tests/rules/readonly-type/ts/index.test.ts +++ b/tests/rules/readonly-type/ts/index.test.ts @@ -1,5 +1,5 @@ -import { name, rule } from "#eslint-plugin-functional/rules/readonly-type"; -import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; +import { name, rule } from "#/rules/readonly-type"; +import { testRule } from "#/tests/helpers/testers"; import invalid from "./invalid"; import valid from "./valid"; diff --git a/tests/rules/readonly-type/ts/invalid.ts b/tests/rules/readonly-type/ts/invalid.ts index c986bb24c..8f5678ac3 100644 --- a/tests/rules/readonly-type/ts/invalid.ts +++ b/tests/rules/readonly-type/ts/invalid.ts @@ -1,12 +1,12 @@ import { AST_NODE_TYPES } from "@typescript-eslint/utils"; import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/readonly-type"; +import { type rule } from "#/rules/readonly-type"; import { type InvalidTestCaseSet, type MessagesOf, type OptionsOf, -} from "#eslint-plugin-functional/tests/helpers/util"; +} from "#/tests/helpers/util"; const tests: Array< InvalidTestCaseSet, OptionsOf> diff --git a/tests/rules/readonly-type/ts/valid.ts b/tests/rules/readonly-type/ts/valid.ts index f0e0c85d4..ae0112316 100644 --- a/tests/rules/readonly-type/ts/valid.ts +++ b/tests/rules/readonly-type/ts/valid.ts @@ -1,10 +1,7 @@ import dedent from "dedent"; -import { type rule } from "#eslint-plugin-functional/rules/readonly-type"; -import { - type OptionsOf, - type ValidTestCaseSet, -} from "#eslint-plugin-functional/tests/helpers/util"; +import { type rule } from "#/rules/readonly-type"; +import { type OptionsOf, type ValidTestCaseSet } from "#/tests/helpers/util"; const tests: Array>> = [ // Not readonly diff --git a/tests/rules/type-declaration-immutability/ts/index.test.ts b/tests/rules/type-declaration-immutability/ts/index.test.ts index 5e0347d73..f591363e3 100644 --- a/tests/rules/type-declaration-immutability/ts/index.test.ts +++ b/tests/rules/type-declaration-immutability/ts/index.test.ts @@ -1,8 +1,5 @@ -import { - name, - rule, -} from "#eslint-plugin-functional/rules/type-declaration-immutability"; -import { testRule } from "#eslint-plugin-functional/tests/helpers/testers"; +import { name, rule } from "#/rules/type-declaration-immutability"; +import { testRule } from "#/tests/helpers/testers"; import invalid from "./invalid"; import valid from "./valid"; diff --git a/tests/rules/type-declaration-immutability/ts/invalid.ts b/tests/rules/type-declaration-immutability/ts/invalid.ts index 7212b5407..657585859 100644 --- a/tests/rules/type-declaration-immutability/ts/invalid.ts +++ b/tests/rules/type-declaration-immutability/ts/invalid.ts @@ -2,12 +2,12 @@ import { AST_NODE_TYPES } from "@typescript-eslint/utils"; import dedent from "dedent"; import { Immutability } from "is-immutable-type"; -import { type rule } from "#eslint-plugin-functional/rules/type-declaration-immutability"; +import { type rule } from "#/rules/type-declaration-immutability"; import { type InvalidTestCaseSet, type MessagesOf, type OptionsOf, -} from "#eslint-plugin-functional/tests/helpers/util"; +} from "#/tests/helpers/util"; const recommended = { rules: [ diff --git a/tests/rules/type-declaration-immutability/ts/valid.ts b/tests/rules/type-declaration-immutability/ts/valid.ts index e073efd80..196d9d2a1 100644 --- a/tests/rules/type-declaration-immutability/ts/valid.ts +++ b/tests/rules/type-declaration-immutability/ts/valid.ts @@ -1,11 +1,8 @@ import dedent from "dedent"; import { Immutability } from "is-immutable-type"; -import { type rule } from "#eslint-plugin-functional/rules/type-declaration-immutability"; -import { - type OptionsOf, - type ValidTestCaseSet, -} from "#eslint-plugin-functional/tests/helpers/util"; +import { type rule } from "#/rules/type-declaration-immutability"; +import { type OptionsOf, type ValidTestCaseSet } from "#/tests/helpers/util"; const recommended = { rules: [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 436171c1d..81c0c12a9 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -31,18 +31,18 @@ "types": ["vitest/importMeta"], "baseUrl": ".", "paths": { - "#eslint-plugin-functional/flat": ["src/flat.ts"], - "#eslint-plugin-functional/classic": ["src/classic.ts"], - "#eslint-plugin-functional/configs/*": ["src/configs/*"], - "#eslint-plugin-functional/options": ["src/options"], - "#eslint-plugin-functional/rules": ["src/rules"], - "#eslint-plugin-functional/rules/*": ["src/rules/*"], - "#eslint-plugin-functional/settings": ["src/settings"], - "#eslint-plugin-functional/utils/*": ["src/utils/*"], - "#eslint-plugin-functional/conditional-imports/*": [ + "#/flat": ["src/flat.ts"], + "#/classic": ["src/classic.ts"], + "#/configs/*": ["src/configs/*"], + "#/options": ["src/options"], + "#/rules": ["src/rules"], + "#/rules/*": ["src/rules/*"], + "#/settings": ["src/settings"], + "#/utils/*": ["src/utils/*"], + "#/conditional-imports/*": [ "src/utils/conditional-imports/cjs/*" ], - "#eslint-plugin-functional/tests/*": ["tests/*"] + "#/tests/*": ["tests/*"] } }, "exclude": ["dist/"] From e6991cbfe4d7de437df8bf35ee4c7cb9c27eb4bf Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 19 Jun 2024 06:35:53 +0000 Subject: [PATCH 3/9] chore(dev-deps): update dependency @babel/eslint-parser to v7.24.7 --- package.json | 2 +- pnpm-lock.yaml | 16 +++++++++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 594fe402c..189a676b3 100644 --- a/package.json +++ b/package.json @@ -98,7 +98,7 @@ "ts-api-utils": "^1.3.0" }, "devDependencies": { - "@babel/eslint-parser": "7.24.1", + "@babel/eslint-parser": "7.24.7", "@commitlint/cli": "19.2.1", "@commitlint/config-conventional": "19.1.0", "@cspell/dict-cryptocurrencies": "5.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e1a4d0eeb..9fd2750a2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -26,8 +26,8 @@ dependencies: devDependencies: '@babel/eslint-parser': - specifier: 7.24.1 - version: 7.24.1(@babel/core@7.24.1)(eslint@8.57.0) + specifier: 7.24.7 + version: 7.24.7(@babel/core@7.24.1)(eslint@8.57.0) '@commitlint/cli': specifier: 19.2.1 version: 19.2.1(@types/node@16.18.93)(typescript@5.4.3) @@ -290,12 +290,12 @@ packages: - supports-color dev: true - /@babel/eslint-parser@7.24.1(@babel/core@7.24.1)(eslint@8.57.0): - resolution: {integrity: sha512-d5guuzMlPeDfZIbpQ8+g1NaCNuAGBBGNECh0HVqz1sjOeVLh2CEaifuOysCH18URW6R7pqXINvf5PaR/dC6jLQ==} + /@babel/eslint-parser@7.24.7(@babel/core@7.24.1)(eslint@8.57.0): + resolution: {integrity: sha512-SO5E3bVxDuxyNxM5agFv480YA2HO6ohZbGxbazZdIk3KQOPOGVNw6q78I9/lbviIf95eq6tPozeYnJLbjnC8IA==} engines: {node: ^10.13.0 || ^12.13.0 || >=14.0.0} peerDependencies: '@babel/core': ^7.11.0 - eslint: ^7.5.0 || ^8.0.0 + eslint: ^7.5.0 || ^8.0.0 || ^9.0.0 dependencies: '@babel/core': 7.24.1 '@nicolo-ribaudo/eslint-scope-5-internals': 5.1.1-v1 @@ -1238,6 +1238,7 @@ packages: /@humanwhocodes/config-array@0.11.14: resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==} engines: {node: '>=10.10.0'} + deprecated: Use @eslint/config-array instead dependencies: '@humanwhocodes/object-schema': 2.0.2 debug: 4.3.4 @@ -1251,6 +1252,7 @@ packages: /@humanwhocodes/object-schema@2.0.2: resolution: {integrity: sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==} + deprecated: Use @eslint/object-schema instead /@isaacs/cliui@8.0.2: resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} @@ -4794,6 +4796,7 @@ packages: /glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} + deprecated: Glob versions prior to v9 are no longer supported dependencies: fs.realpath: 1.0.0 inflight: 1.0.6 @@ -4805,6 +4808,7 @@ packages: /glob@8.1.0: resolution: {integrity: sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==} engines: {node: '>=12'} + deprecated: Glob versions prior to v9 are no longer supported dependencies: fs.realpath: 1.0.0 inflight: 1.0.6 @@ -5127,6 +5131,7 @@ packages: /inflight@1.0.6: resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} + deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. dependencies: once: 1.4.0 wrappy: 1.0.2 @@ -7236,6 +7241,7 @@ packages: /rimraf@3.0.2: resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} + deprecated: Rimraf versions prior to v4 are no longer supported hasBin: true dependencies: glob: 7.2.3 From 02b162deb79ec419f920b3927eb1adb772eff25f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 19 Jun 2024 07:18:09 +0000 Subject: [PATCH 4/9] chore(dev-deps): update semantic-release monorepo --- package.json | 6 +- pnpm-lock.yaml | 188 +++++++++++++++++++++++++++++++++++++------------ 2 files changed, 147 insertions(+), 47 deletions(-) diff --git a/package.json b/package.json index 189a676b3..9cd7b293e 100644 --- a/package.json +++ b/package.json @@ -106,8 +106,8 @@ "@semantic-release/changelog": "6.0.3", "@semantic-release/commit-analyzer": "12.0.0", "@semantic-release/git": "10.0.1", - "@semantic-release/github": "10.0.2", - "@semantic-release/npm": "12.0.0", + "@semantic-release/github": "10.0.6", + "@semantic-release/npm": "12.0.1", "@semantic-release/release-notes-generator": "13.0.0", "@types/dedent": "0.7.2", "@types/eslint": "8.56.6", @@ -154,7 +154,7 @@ "rollup": "4.13.2", "rollup-plugin-auto-external": "2.0.0", "rollup-plugin-ts": "3.4.5", - "semantic-release": "23.0.6", + "semantic-release": "23.1.1", "semantic-release-replace-plugin": "1.2.7", "ts-node": "10.9.2", "tsc-alias": "1.8.8", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9fd2750a2..cded7a040 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -42,22 +42,22 @@ devDependencies: version: 2.0.11(@typescript-eslint/eslint-plugin@7.4.0)(@typescript-eslint/parser@7.4.0)(eslint-import-resolver-typescript@3.6.1)(eslint-plugin-eslint-comments@3.2.0)(eslint-plugin-functional@6.1.1)(eslint-plugin-import@2.29.1)(eslint-plugin-jsdoc@48.2.2)(eslint-plugin-markdown@3.0.1)(eslint-plugin-n@16.6.2)(eslint-plugin-optimize-regex@1.2.1)(eslint-plugin-promise@6.1.1)(eslint-plugin-sonarjs@0.25.0)(eslint-plugin-unicorn@51.0.1)(eslint@8.57.0) '@semantic-release/changelog': specifier: 6.0.3 - version: 6.0.3(semantic-release@23.0.6) + version: 6.0.3(semantic-release@23.1.1) '@semantic-release/commit-analyzer': specifier: 12.0.0 - version: 12.0.0(semantic-release@23.0.6) + version: 12.0.0(semantic-release@23.1.1) '@semantic-release/git': specifier: 10.0.1 - version: 10.0.1(semantic-release@23.0.6) + version: 10.0.1(semantic-release@23.1.1) '@semantic-release/github': - specifier: 10.0.2 - version: 10.0.2(semantic-release@23.0.6) + specifier: 10.0.6 + version: 10.0.6(semantic-release@23.1.1) '@semantic-release/npm': - specifier: 12.0.0 - version: 12.0.0(semantic-release@23.0.6) + specifier: 12.0.1 + version: 12.0.1(semantic-release@23.1.1) '@semantic-release/release-notes-generator': specifier: 13.0.0 - version: 13.0.0(semantic-release@23.0.6) + version: 13.0.0(semantic-release@23.1.1) '@types/dedent': specifier: 0.7.2 version: 0.7.2 @@ -194,11 +194,11 @@ devDependencies: specifier: 3.4.5 version: 3.4.5(@babel/core@7.24.1)(rollup@4.13.2)(typescript@5.4.3) semantic-release: - specifier: 23.0.6 - version: 23.0.6(typescript@5.4.3) + specifier: 23.1.1 + version: 23.1.1(typescript@5.4.3) semantic-release-replace-plugin: specifier: 1.2.7 - version: 1.2.7(semantic-release@23.0.6) + version: 1.2.7(semantic-release@23.1.1) ts-node: specifier: 10.9.2 version: 10.9.2(@types/node@16.18.93)(typescript@5.4.3) @@ -1456,14 +1456,18 @@ packages: resolution: {integrity: sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA==} dev: true - /@octokit/plugin-paginate-rest@10.0.0(@octokit/core@6.0.1): - resolution: {integrity: sha512-G1Z67qOiFneKDJyMafHQkWnKm1kU3FfbRZLzxgsFg4dOa3pRNdABbdk+xo/oev6P88lnbt7GKdBNB6dJZuPphA==} + /@octokit/openapi-types@22.2.0: + resolution: {integrity: sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg==} + dev: true + + /@octokit/plugin-paginate-rest@11.3.0(@octokit/core@6.0.1): + resolution: {integrity: sha512-n4znWfRinnUQF6TPyxs7EctSAA3yVSP4qlJP2YgI3g9d4Ae2n5F3XDOjbUluKRxPU3rfsgpOboI4O4VtPc6Ilg==} engines: {node: '>= 18'} peerDependencies: '@octokit/core': '>=6' dependencies: '@octokit/core': 6.0.1 - '@octokit/types': 12.6.0 + '@octokit/types': 13.5.0 dev: true /@octokit/plugin-retry@7.0.3(@octokit/core@6.0.1): @@ -1512,6 +1516,12 @@ packages: '@octokit/openapi-types': 20.0.0 dev: true + /@octokit/types@13.5.0: + resolution: {integrity: sha512-HdqWTf5Z3qwDVlzCrP8UJquMwunpDiMPt5er+QjGzL4hqr/vBVY/MauQgS1xWxCDT1oMx1EULyqxncdCY/NVSQ==} + dependencies: + '@octokit/openapi-types': 22.2.0 + dev: true + /@pkgjs/parseargs@0.11.0: resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} engines: {node: '>=14'} @@ -1840,7 +1850,11 @@ packages: dev: true optional: true - /@semantic-release/changelog@6.0.3(semantic-release@23.0.6): + /@sec-ant/readable-stream@0.4.1: + resolution: {integrity: sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==} + dev: true + + /@semantic-release/changelog@6.0.3(semantic-release@23.1.1): resolution: {integrity: sha512-dZuR5qByyfe3Y03TpmCvAxCyTnp7r5XwtHRf/8vD9EAn4ZWbavUX8adMtXYzE86EVh0gyLA7lm5yW4IV30XUag==} engines: {node: '>=14.17'} peerDependencies: @@ -1850,10 +1864,10 @@ packages: aggregate-error: 3.1.0 fs-extra: 11.2.0 lodash: 4.17.21 - semantic-release: 23.0.6(typescript@5.4.3) + semantic-release: 23.1.1(typescript@5.4.3) dev: true - /@semantic-release/commit-analyzer@12.0.0(semantic-release@23.0.6): + /@semantic-release/commit-analyzer@12.0.0(semantic-release@23.1.1): resolution: {integrity: sha512-qG+md5gdes+xa8zP7lIo1fWE17zRdO8yMCaxh9lyL65TQleoSv8WHHOqRURfghTytUh+NpkSyBprQ5hrkxOKVQ==} engines: {node: '>=20.8.1'} peerDependencies: @@ -1866,7 +1880,7 @@ packages: import-from-esm: 1.3.3 lodash-es: 4.17.21 micromatch: 4.0.5 - semantic-release: 23.0.6(typescript@5.4.3) + semantic-release: 23.1.1(typescript@5.4.3) transitivePeerDependencies: - supports-color dev: true @@ -1881,7 +1895,7 @@ packages: engines: {node: '>=18'} dev: true - /@semantic-release/git@10.0.1(semantic-release@23.0.6): + /@semantic-release/git@10.0.1(semantic-release@23.1.1): resolution: {integrity: sha512-eWrx5KguUcU2wUPaO6sfvZI0wPafUKAMNC18aXY4EnNcrZL86dEmpNVnC9uMpGZkmZJ9EfCVJBQx4pV4EMGT1w==} engines: {node: '>=14.17'} peerDependencies: @@ -1895,19 +1909,19 @@ packages: lodash: 4.17.21 micromatch: 4.0.5 p-reduce: 2.1.0 - semantic-release: 23.0.6(typescript@5.4.3) + semantic-release: 23.1.1(typescript@5.4.3) transitivePeerDependencies: - supports-color dev: true - /@semantic-release/github@10.0.2(semantic-release@23.0.6): - resolution: {integrity: sha512-SP5ihhv/uQa8vPuWKmbJrrzfv8lRUkDFC6qwgaWoorrflN1DEW0IGCa9w/PxUp8Ad3dbvXZPmpXdGiP3eyTzhg==} + /@semantic-release/github@10.0.6(semantic-release@23.1.1): + resolution: {integrity: sha512-sS4psqZacGTFEN49UQGqwFNG6Jyx2/RX1BhhDGn/2WoPbhAHislohOY05/5r+JoL4gJMWycfH7tEm1eGVutYeg==} engines: {node: '>=20.8.1'} peerDependencies: semantic-release: '>=20.1.0' dependencies: '@octokit/core': 6.0.1 - '@octokit/plugin-paginate-rest': 10.0.0(@octokit/core@6.0.1) + '@octokit/plugin-paginate-rest': 11.3.0(@octokit/core@6.0.1) '@octokit/plugin-retry': 7.0.3(@octokit/core@6.0.1) '@octokit/plugin-throttling': 9.0.3(@octokit/core@6.0.1) '@semantic-release/error': 4.0.0 @@ -1921,21 +1935,21 @@ packages: lodash-es: 4.17.21 mime: 4.0.1 p-filter: 4.1.0 - semantic-release: 23.0.6(typescript@5.4.3) + semantic-release: 23.1.1(typescript@5.4.3) url-join: 5.0.0 transitivePeerDependencies: - supports-color dev: true - /@semantic-release/npm@12.0.0(semantic-release@23.0.6): - resolution: {integrity: sha512-72TVYQCH9NvVsO/y13eF8vE4bNnfls518+4KcFwJUKi7AtA/ZXoNgSg9gTTfw5eMZMkiH0izUrpGXgZE/cSQhA==} + /@semantic-release/npm@12.0.1(semantic-release@23.1.1): + resolution: {integrity: sha512-/6nntGSUGK2aTOI0rHPwY3ZjgY9FkXmEHbW9Kr+62NVOsyqpKKeP0lrCH+tphv+EsNdJNmqqwijTEnVWUMQ2Nw==} engines: {node: '>=20.8.1'} peerDependencies: semantic-release: '>=20.1.0' dependencies: '@semantic-release/error': 4.0.0 aggregate-error: 5.0.0 - execa: 8.0.1 + execa: 9.2.0 fs-extra: 11.2.0 lodash-es: 4.17.21 nerf-dart: 1.0.0 @@ -1944,12 +1958,12 @@ packages: rc: 1.2.8 read-pkg: 9.0.1 registry-auth-token: 5.0.2 - semantic-release: 23.0.6(typescript@5.4.3) + semantic-release: 23.1.1(typescript@5.4.3) semver: 7.6.0 tempy: 3.1.0 dev: true - /@semantic-release/release-notes-generator@13.0.0(semantic-release@23.0.6): + /@semantic-release/release-notes-generator@13.0.0(semantic-release@23.1.1): resolution: {integrity: sha512-LEeZWb340keMYuREMyxrODPXJJ0JOL8D/mCl74B4LdzbxhtXV2LrPN2QBEcGJrlQhoqLO0RhxQb6masHytKw+A==} engines: {node: '>=20.8.1'} peerDependencies: @@ -1965,7 +1979,7 @@ packages: into-stream: 7.0.0 lodash-es: 4.17.21 read-pkg-up: 11.0.0 - semantic-release: 23.0.6(typescript@5.4.3) + semantic-release: 23.1.1(typescript@5.4.3) transitivePeerDependencies: - supports-color dev: true @@ -1984,6 +1998,11 @@ packages: engines: {node: '>=18'} dev: true + /@sindresorhus/merge-streams@4.0.0: + resolution: {integrity: sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==} + engines: {node: '>=18'} + dev: true + /@snyk/github-codeowners@1.1.0: resolution: {integrity: sha512-lGFf08pbkEac0NYgVf4hdANpAgApRjNByLXB+WBip3qj1iendOIyAwP2GKkKbQMNVy2r1xxDf0ssfWscoiC+Vw==} engines: {node: '>=8.10'} @@ -3222,6 +3241,11 @@ packages: split2: 4.2.0 dev: true + /convert-hrtime@5.0.0: + resolution: {integrity: sha512-lOETlkIeYSJWcbbcvjRKGxVMXJR+8+OQb/mTPbA4ObPMytYIsUbuOE0Jzy60hjARYszq1id0j8KgVhC+WGZVTg==} + engines: {node: '>=12'} + dev: true + /convert-source-map@2.0.0: resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} dev: true @@ -4398,6 +4422,24 @@ packages: strip-final-newline: 3.0.0 dev: true + /execa@9.2.0: + resolution: {integrity: sha512-vpOyYg7UAVKLAWWtRS2gAdgkT7oJbCn0me3gmUmxZih4kd3MF/oo8kNTBTIbkO3yuuF5uB4ZCZfn8BOolITYhg==} + engines: {node: ^18.19.0 || >=20.5.0} + dependencies: + '@sindresorhus/merge-streams': 4.0.0 + cross-spawn: 7.0.3 + figures: 6.1.0 + get-stream: 9.0.1 + human-signals: 7.0.0 + is-plain-obj: 4.1.0 + is-stream: 4.0.1 + npm-run-path: 5.3.0 + pretty-ms: 9.0.0 + signal-exit: 4.1.0 + strip-final-newline: 4.0.0 + yoctocolors: 2.0.2 + dev: true + /expand-tilde@2.0.2: resolution: {integrity: sha512-A5EmesHW6rfnZ9ysHQjPdJRni0SRar0tjtG5MNtm9n5TUvsYU8oozprtRD4AqHxcZWWlVuAmQo2nWKfN9oyjTw==} engines: {node: '>=0.10.0'} @@ -4561,11 +4603,12 @@ packages: unicorn-magic: 0.1.0 dev: true - /find-versions@5.1.0: - resolution: {integrity: sha512-+iwzCJ7C5v5KgcBuueqVoNiHVoQpwiUK5XFLjf0affFTep+Wcw93tPvmb8tqujDNmzhBDPddnWV/qgWSXgq+Hg==} - engines: {node: '>=12'} + /find-versions@6.0.0: + resolution: {integrity: sha512-2kCCtc+JvcZ86IGAz3Z2Y0A1baIz9fL31pH/0S1IqZr9Iwnjq8izfPtrCyQKO6TLMPELLsQMre7VDqeIKCsHkA==} + engines: {node: '>=18'} dependencies: semver-regex: 4.0.5 + super-regex: 1.0.0 dev: true /findup-sync@4.0.0: @@ -4661,6 +4704,11 @@ packages: resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} dev: true + /function-timeout@1.0.2: + resolution: {integrity: sha512-939eZS4gJ3htTHAldmyyuzlrD58P03fHG49v2JfFXbV6OhvZKRC9j2yAtdHw/zrp2zXHuv05zMIy40F0ge7spA==} + engines: {node: '>=18'} + dev: true + /function.prototype.name@1.1.6: resolution: {integrity: sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==} engines: {node: '>= 0.4'} @@ -4730,6 +4778,14 @@ packages: engines: {node: '>=16'} dev: true + /get-stream@9.0.1: + resolution: {integrity: sha512-kVCxPF3vQM/N0B1PmoqVUqgHP+EeVjmZSQn+1oCRPxd2P21P2F19lIgbR3HBosbB1PUhOAoctJnfEn2GbN2eZA==} + engines: {node: '>=18'} + dependencies: + '@sec-ant/readable-stream': 0.4.1 + is-stream: 4.0.1 + dev: true + /get-symbol-description@1.0.2: resolution: {integrity: sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg==} engines: {node: '>= 0.4'} @@ -5060,6 +5116,11 @@ packages: engines: {node: '>=16.17.0'} dev: true + /human-signals@7.0.0: + resolution: {integrity: sha512-74kytxOUSvNbjrT9KisAbaTZ/eJwD/LrbM/kh5j0IhPuJzwuA19dWvniFGwBzN9rVjg+O/e+F310PjObDXS+9Q==} + engines: {node: '>=18.18.0'} + dev: true + /husky@9.0.11: resolution: {integrity: sha512-AB6lFlbwwyIqMdHYhwPe+kjOC3Oc5P3nThEoW/AaO2BX3vJDjWPFxYLxokUZOo6RNX20He3AaT8sESs9NJcmEw==} engines: {node: '>=18'} @@ -5401,6 +5462,11 @@ packages: engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dev: true + /is-stream@4.0.1: + resolution: {integrity: sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==} + engines: {node: '>=18'} + dev: true + /is-string@1.0.7: resolution: {integrity: sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==} engines: {node: '>= 0.4'} @@ -7037,6 +7103,15 @@ packages: npm-normalize-package-bin: 3.0.1 dev: true + /read-package-up@11.0.0: + resolution: {integrity: sha512-MbgfoNPANMdb4oRBNg5eqLbB2t2r+o5Ua1pNt8BqGp4I0FJZhuVSOj3PaBPni4azWuSzEdNn2evevzVmEk1ohQ==} + engines: {node: '>=18'} + dependencies: + find-up-simple: 1.0.0 + read-pkg: 9.0.1 + type-fest: 4.13.1 + dev: true + /read-pkg-up@11.0.0: resolution: {integrity: sha512-LOVbvF1Q0SZdjClSefZ0Nz5z8u+tIE7mV5NibzmE9VYmDe9CaBbAVtz1veOSZbofrdsilxuDAYnFenukZVp8/Q==} engines: {node: '>=18'} @@ -7405,7 +7480,7 @@ packages: resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} dev: true - /semantic-release-replace-plugin@1.2.7(semantic-release@23.0.6): + /semantic-release-replace-plugin@1.2.7(semantic-release@23.1.1): resolution: {integrity: sha512-BfFQVnfC8O7+NpyfjWZuQQEkXwxf1ABbGEQuXqMsrBi7ItCnkSlO3mwuqUllxxuh1WgKx5oYKMVhmZJ0aMaqVQ==} engines: {node: '>=18'} peerDependencies: @@ -7414,26 +7489,26 @@ packages: jest-diff: 29.7.0 lodash-es: 4.17.21 replace-in-file: 7.1.0 - semantic-release: 23.0.6(typescript@5.4.3) + semantic-release: 23.1.1(typescript@5.4.3) dev: true - /semantic-release@23.0.6(typescript@5.4.3): - resolution: {integrity: sha512-/r62F4PNhJZhyZYMobcpcACGwpFNQyaVcSmqZQXG50GMbHSBVZQLCvwafqxO1lDQKVgmGmyCEtOVYzwvzvyhVw==} + /semantic-release@23.1.1(typescript@5.4.3): + resolution: {integrity: sha512-qqJDBhbtHsjUEMsojWKGuL5lQFCJuPtiXKEIlFKyTzDDGTAE/oyvznaP8GeOr5PvcqBJ6LQz4JCENWPLeehSpA==} engines: {node: '>=20.8.1'} hasBin: true dependencies: - '@semantic-release/commit-analyzer': 12.0.0(semantic-release@23.0.6) + '@semantic-release/commit-analyzer': 12.0.0(semantic-release@23.1.1) '@semantic-release/error': 4.0.0 - '@semantic-release/github': 10.0.2(semantic-release@23.0.6) - '@semantic-release/npm': 12.0.0(semantic-release@23.0.6) - '@semantic-release/release-notes-generator': 13.0.0(semantic-release@23.0.6) + '@semantic-release/github': 10.0.6(semantic-release@23.1.1) + '@semantic-release/npm': 12.0.1(semantic-release@23.1.1) + '@semantic-release/release-notes-generator': 13.0.0(semantic-release@23.1.1) aggregate-error: 5.0.0 cosmiconfig: 9.0.0(typescript@5.4.3) debug: 4.3.4 env-ci: 11.0.0 - execa: 8.0.1 + execa: 9.2.0 figures: 6.1.0 - find-versions: 5.1.0 + find-versions: 6.0.0 get-stream: 6.0.1 git-log-parser: 1.2.0 hook-std: 3.0.0 @@ -7445,7 +7520,7 @@ packages: micromatch: 4.0.5 p-each-series: 3.0.0 p-reduce: 3.0.0 - read-pkg-up: 11.0.0 + read-package-up: 11.0.0 resolve-from: 5.0.0 semver: 7.6.0 semver-diff: 4.0.0 @@ -7802,6 +7877,11 @@ packages: engines: {node: '>=12'} dev: true + /strip-final-newline@4.0.0: + resolution: {integrity: sha512-aulFJcD6YK8V1G7iRB5tigAP4TsHBZZrOV8pjV++zdUwmeV8uzbY7yn6h9MswN62adStNZFuCIx4haBnRuMDaw==} + engines: {node: '>=18'} + dev: true + /strip-indent@3.0.0: resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==} engines: {node: '>=8'} @@ -7833,6 +7913,14 @@ packages: resolution: {integrity: sha512-nMIjMrd5Z2nuB2RZCKJfFMjgS3fygbeyGk9PxPPaJR1RIcyN9yn4A63Isovzm3ZtQuEkLBVgMdPup8UeLH7aQw==} dev: true + /super-regex@1.0.0: + resolution: {integrity: sha512-CY8u7DtbvucKuquCmOFEKhr9Besln7n9uN8eFbwcoGYWXOMW07u2o8njWaiXt11ylS3qoGF55pILjRmPlbodyg==} + engines: {node: '>=18'} + dependencies: + function-timeout: 1.0.2 + time-span: 5.1.0 + dev: true + /supports-color@5.5.0: resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} engines: {node: '>=4'} @@ -7942,6 +8030,13 @@ packages: resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} dev: true + /time-span@5.1.0: + resolution: {integrity: sha512-75voc/9G4rDIJleOo4jPvN4/YC4GRZrY8yy1uU4lwrB3XEQbWve8zXoO5No4eFrGcTAMYyoY67p8jRQdtA1HbA==} + engines: {node: '>=12'} + dependencies: + convert-hrtime: 5.0.0 + dev: true + /tinybench@2.6.0: resolution: {integrity: sha512-N8hW3PG/3aOoZAN5V/NSAEDz0ZixDSSt5b/a05iqtpgfLWMSVuCo7w0k2vVvEjdrIoeGqZzweX2WlyioNIHchA==} dev: true @@ -8698,6 +8793,11 @@ packages: engines: {node: '>=12.20'} dev: true + /yoctocolors@2.0.2: + resolution: {integrity: sha512-Ct97huExsu7cWeEjmrXlofevF8CvzUglJ4iGUet5B8xn1oumtAZBpHU4GzYuoE6PVqcZ5hghtBrSlhwHuR1Jmw==} + engines: {node: '>=18'} + dev: true + /zod-validation-error@3.0.3(zod@3.22.4): resolution: {integrity: sha512-cETTrcMq3Ze58vhdR0zD37uJm/694I6mAxcf/ei5bl89cC++fBNxrC2z8lkFze/8hVMPwrbtrwXHR2LB50fpHw==} engines: {node: '>=18.0.0'} From 7acc91452dcd0f45980af838b0f3e9f7daf29bae Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 19 Jun 2024 07:31:05 +0000 Subject: [PATCH 5/9] chore(dev-deps): update commitlint monorepo --- package.json | 4 ++-- pnpm-lock.yaml | 34 +++++++++++++++++----------------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/package.json b/package.json index 9cd7b293e..b0baecaa2 100644 --- a/package.json +++ b/package.json @@ -99,8 +99,8 @@ }, "devDependencies": { "@babel/eslint-parser": "7.24.7", - "@commitlint/cli": "19.2.1", - "@commitlint/config-conventional": "19.1.0", + "@commitlint/cli": "19.3.0", + "@commitlint/config-conventional": "19.2.2", "@cspell/dict-cryptocurrencies": "5.0.0", "@rebeccastevens/eslint-config": "2.0.11", "@semantic-release/changelog": "6.0.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cded7a040..7db073dd6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -29,11 +29,11 @@ devDependencies: specifier: 7.24.7 version: 7.24.7(@babel/core@7.24.1)(eslint@8.57.0) '@commitlint/cli': - specifier: 19.2.1 - version: 19.2.1(@types/node@16.18.93)(typescript@5.4.3) + specifier: 19.3.0 + version: 19.3.0(@types/node@16.18.93)(typescript@5.4.3) '@commitlint/config-conventional': - specifier: 19.1.0 - version: 19.1.0 + specifier: 19.2.2 + version: 19.2.2 '@cspell/dict-cryptocurrencies': specifier: 5.0.0 version: 5.0.0 @@ -471,13 +471,13 @@ packages: dev: true optional: true - /@commitlint/cli@19.2.1(@types/node@16.18.93)(typescript@5.4.3): - resolution: {integrity: sha512-cbkYUJsLqRomccNxvoJTyv5yn0bSy05BBizVyIcLACkRbVUqYorC351Diw/XFSWC/GtpwiwT2eOvQgFZa374bg==} + /@commitlint/cli@19.3.0(@types/node@16.18.93)(typescript@5.4.3): + resolution: {integrity: sha512-LgYWOwuDR7BSTQ9OLZ12m7F/qhNY+NpAyPBgo4YNMkACE7lGuUnuQq1yi9hz1KA4+3VqpOYl8H1rY/LYK43v7g==} engines: {node: '>=v18'} hasBin: true dependencies: - '@commitlint/format': 19.0.3 - '@commitlint/lint': 19.1.0 + '@commitlint/format': 19.3.0 + '@commitlint/lint': 19.2.2 '@commitlint/load': 19.2.0(@types/node@16.18.93)(typescript@5.4.3) '@commitlint/read': 19.2.1 '@commitlint/types': 19.0.3 @@ -488,8 +488,8 @@ packages: - typescript dev: true - /@commitlint/config-conventional@19.1.0: - resolution: {integrity: sha512-KIKD2xrp6Uuk+dcZVj3++MlzIr/Su6zLE8crEDQCZNvWHNQSeeGbzOlNtsR32TUy6H3JbP7nWgduAHCaiGQ6EA==} + /@commitlint/config-conventional@19.2.2: + resolution: {integrity: sha512-mLXjsxUVLYEGgzbxbxicGPggDuyWNkf25Ht23owXIH+zV2pv1eJuzLK3t1gDY5Gp6pxdE60jZnWUY5cvgL3ufw==} engines: {node: '>=v18'} dependencies: '@commitlint/types': 19.0.3 @@ -521,27 +521,27 @@ packages: engines: {node: '>=v18'} dev: true - /@commitlint/format@19.0.3: - resolution: {integrity: sha512-QjjyGyoiVWzx1f5xOteKHNLFyhyweVifMgopozSgx1fGNrGV8+wp7k6n1t6StHdJ6maQJ+UUtO2TcEiBFRyR6Q==} + /@commitlint/format@19.3.0: + resolution: {integrity: sha512-luguk5/aF68HiF4H23ACAfk8qS8AHxl4LLN5oxPc24H+2+JRPsNr1OS3Gaea0CrH7PKhArBMKBz5RX9sA5NtTg==} engines: {node: '>=v18'} dependencies: '@commitlint/types': 19.0.3 chalk: 5.3.0 dev: true - /@commitlint/is-ignored@19.0.3: - resolution: {integrity: sha512-MqDrxJaRSVSzCbPsV6iOKG/Lt52Y+PVwFVexqImmYYFhe51iVJjK2hRhOG2jUAGiUHk4jpdFr0cZPzcBkSzXDQ==} + /@commitlint/is-ignored@19.2.2: + resolution: {integrity: sha512-eNX54oXMVxncORywF4ZPFtJoBm3Tvp111tg1xf4zWXGfhBPKpfKG6R+G3G4v5CPlRROXpAOpQ3HMhA9n1Tck1g==} engines: {node: '>=v18'} dependencies: '@commitlint/types': 19.0.3 semver: 7.6.0 dev: true - /@commitlint/lint@19.1.0: - resolution: {integrity: sha512-ESjaBmL/9cxm+eePyEr6SFlBUIYlYpI80n+Ltm7IA3MAcrmiP05UMhJdAD66sO8jvo8O4xdGn/1Mt2G5VzfZKw==} + /@commitlint/lint@19.2.2: + resolution: {integrity: sha512-xrzMmz4JqwGyKQKTpFzlN0dx0TAiT7Ran1fqEBgEmEj+PU98crOFtysJgY+QdeSagx6EDRigQIXJVnfrI0ratA==} engines: {node: '>=v18'} dependencies: - '@commitlint/is-ignored': 19.0.3 + '@commitlint/is-ignored': 19.2.2 '@commitlint/parse': 19.0.3 '@commitlint/rules': 19.0.3 '@commitlint/types': 19.0.3 From 0ee0a6e61ab30eb207358f90a77687cdbb52c7bf Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 19 Jun 2024 07:54:49 +0000 Subject: [PATCH 6/9] chore(dev-deps): update vitest monorepo to v1.6.0 --- package.json | 6 +-- pnpm-lock.yaml | 104 +++++++++++++++++++++---------------------------- 2 files changed, 48 insertions(+), 62 deletions(-) diff --git a/package.json b/package.json index b0baecaa2..b2819d8b1 100644 --- a/package.json +++ b/package.json @@ -117,8 +117,8 @@ "@typescript-eslint/eslint-plugin": "7.4.0", "@typescript-eslint/parser": "7.4.0", "@typescript-eslint/rule-tester": "7.4.0", - "@vitest/coverage-istanbul": "1.4.0", - "@vitest/coverage-v8": "1.4.0", + "@vitest/coverage-istanbul": "1.6.0", + "@vitest/coverage-v8": "1.6.0", "chalk": "4.1.2", "commitizen": "4.3.0", "conventional-commit-types": "3.0.0", @@ -162,7 +162,7 @@ "tsconfig-paths": "4.2.0", "typescript": "5.4.3", "vite-tsconfig-paths": "4.3.2", - "vitest": "1.4.0", + "vitest": "1.6.0", "word-wrap": "1.2.5" }, "peerDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7db073dd6..a36cede96 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -83,11 +83,11 @@ devDependencies: specifier: 7.4.0 version: 7.4.0(@eslint/eslintrc@3.0.2)(eslint@8.57.0)(typescript@5.4.3) '@vitest/coverage-istanbul': - specifier: 1.4.0 - version: 1.4.0(vitest@1.4.0) + specifier: 1.6.0 + version: 1.6.0(vitest@1.6.0) '@vitest/coverage-v8': - specifier: 1.4.0 - version: 1.4.0(vitest@1.4.0) + specifier: 1.6.0 + version: 1.6.0(vitest@1.6.0) chalk: specifier: 4.1.2 version: 4.1.2 @@ -153,7 +153,7 @@ devDependencies: version: 51.0.1(eslint@8.57.0) eslint-plugin-vitest: specifier: 0.4.1 - version: 0.4.1(@typescript-eslint/eslint-plugin@7.4.0)(eslint@8.57.0)(typescript@5.4.3)(vitest@1.4.0) + version: 0.4.1(@typescript-eslint/eslint-plugin@7.4.0)(eslint@8.57.0)(typescript@5.4.3)(vitest@1.6.0) espree: specifier: 10.0.1 version: 10.0.1 @@ -218,8 +218,8 @@ devDependencies: specifier: 4.3.2 version: 4.3.2(typescript@5.4.3) vitest: - specifier: 1.4.0 - version: 1.4.0(@types/node@16.18.93) + specifier: 1.6.0 + version: 1.6.0(@types/node@16.18.93) word-wrap: specifier: 1.2.5 version: 1.2.5 @@ -2050,10 +2050,6 @@ packages: resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} dev: true - /@types/istanbul-lib-coverage@2.0.6: - resolution: {integrity: sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==} - dev: true - /@types/json-schema@7.0.15: resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} @@ -2376,10 +2372,10 @@ packages: /@ungap/structured-clone@1.2.0: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} - /@vitest/coverage-istanbul@1.4.0(vitest@1.4.0): - resolution: {integrity: sha512-39TjURYyAY6CLDx8M1RNYGoAuWicPWoofk+demJbAZROLCwUgGPgMRSg51GN+snbmQRTpSizuS9XC3cMSdQH2Q==} + /@vitest/coverage-istanbul@1.6.0(vitest@1.6.0): + resolution: {integrity: sha512-h/BwpXehkkS0qsNCS00QxiupAqVkNi0WT19BR0dQvlge5oHghoSVLx63fABYFoKxVb7Ue7+k6V2KokmQ1zdMpg==} peerDependencies: - vitest: 1.4.0 + vitest: 1.6.0 dependencies: debug: 4.3.4 istanbul-lib-coverage: 3.2.2 @@ -2390,15 +2386,15 @@ packages: magicast: 0.3.3 picocolors: 1.0.0 test-exclude: 6.0.0 - vitest: 1.4.0(@types/node@16.18.93) + vitest: 1.6.0(@types/node@16.18.93) transitivePeerDependencies: - supports-color dev: true - /@vitest/coverage-v8@1.4.0(vitest@1.4.0): - resolution: {integrity: sha512-4hDGyH1SvKpgZnIByr9LhGgCEuF9DKM34IBLCC/fVfy24Z3+PZ+Ii9hsVBsHvY1umM1aGPEjceRkzxCfcQ10wg==} + /@vitest/coverage-v8@1.6.0(vitest@1.6.0): + resolution: {integrity: sha512-KvapcbMY/8GYIG0rlwwOKCVNRc0OL20rrhFkg/CHNzncV03TE2XWvO5w9uZYoxNiMEBacAJt3unSOiZ7svePew==} peerDependencies: - vitest: 1.4.0 + vitest: 1.6.0 dependencies: '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 0.2.3 @@ -2413,44 +2409,43 @@ packages: std-env: 3.7.0 strip-literal: 2.0.0 test-exclude: 6.0.0 - v8-to-istanbul: 9.2.0 - vitest: 1.4.0(@types/node@16.18.93) + vitest: 1.6.0(@types/node@16.18.93) transitivePeerDependencies: - supports-color dev: true - /@vitest/expect@1.4.0: - resolution: {integrity: sha512-Jths0sWCJZ8BxjKe+p+eKsoqev1/T8lYcrjavEaz8auEJ4jAVY0GwW3JKmdVU4mmNPLPHixh4GNXP7GFtAiDHA==} + /@vitest/expect@1.6.0: + resolution: {integrity: sha512-ixEvFVQjycy/oNgHjqsL6AZCDduC+tflRluaHIzKIsdbzkLn2U/iBnVeJwB6HsIjQBdfMR8Z0tRxKUsvFJEeWQ==} dependencies: - '@vitest/spy': 1.4.0 - '@vitest/utils': 1.4.0 + '@vitest/spy': 1.6.0 + '@vitest/utils': 1.6.0 chai: 4.4.1 dev: true - /@vitest/runner@1.4.0: - resolution: {integrity: sha512-EDYVSmesqlQ4RD2VvWo3hQgTJ7ZrFQ2VSJdfiJiArkCerDAGeyF1i6dHkmySqk573jLp6d/cfqCN+7wUB5tLgg==} + /@vitest/runner@1.6.0: + resolution: {integrity: sha512-P4xgwPjwesuBiHisAVz/LSSZtDjOTPYZVmNAnpHHSR6ONrf8eCJOFRvUwdHn30F5M1fxhqtl7QZQUk2dprIXAg==} dependencies: - '@vitest/utils': 1.4.0 + '@vitest/utils': 1.6.0 p-limit: 5.0.0 pathe: 1.1.2 dev: true - /@vitest/snapshot@1.4.0: - resolution: {integrity: sha512-saAFnt5pPIA5qDGxOHxJ/XxhMFKkUSBJmVt5VgDsAqPTX6JP326r5C/c9UuCMPoXNzuudTPsYDZCoJ5ilpqG2A==} + /@vitest/snapshot@1.6.0: + resolution: {integrity: sha512-+Hx43f8Chus+DCmygqqfetcAZrDJwvTj0ymqjQq4CvmpKFSTVteEOBzCusu1x2tt4OJcvBflyHUE0DZSLgEMtQ==} dependencies: magic-string: 0.30.8 pathe: 1.1.2 pretty-format: 29.7.0 dev: true - /@vitest/spy@1.4.0: - resolution: {integrity: sha512-Ywau/Qs1DzM/8Uc+yA77CwSegizMlcgTJuYGAi0jujOteJOUf1ujunHThYo243KG9nAyWT3L9ifPYZ5+As/+6Q==} + /@vitest/spy@1.6.0: + resolution: {integrity: sha512-leUTap6B/cqi/bQkXUu6bQV5TZPx7pmMBKBQiI0rJA8c3pB56ZsaTbREnF7CJfmvAS4V2cXIBAh/3rVwrrCYgw==} dependencies: tinyspy: 2.2.1 dev: true - /@vitest/utils@1.4.0: - resolution: {integrity: sha512-mx3Yd1/6e2Vt/PUC98DcqTirtfxUyAZ32uK82r8rZzbtBeBo+nqgnjx/LvqQdWsrvNtm14VmurNgcf4nqY5gJg==} + /@vitest/utils@1.6.0: + resolution: {integrity: sha512-21cPiuGMoMZwiOHa2i4LXkMkMkCGzA+MVFV70jRwHo95dL4x/ts5GZhML1QWuy7yfp3WzK3lRvZi3JnXTYqrBw==} dependencies: diff-sequences: 29.6.3 estree-walker: 3.0.3 @@ -4223,7 +4218,7 @@ packages: - supports-color dev: true - /eslint-plugin-vitest@0.4.1(@typescript-eslint/eslint-plugin@7.4.0)(eslint@8.57.0)(typescript@5.4.3)(vitest@1.4.0): + /eslint-plugin-vitest@0.4.1(@typescript-eslint/eslint-plugin@7.4.0)(eslint@8.57.0)(typescript@5.4.3)(vitest@1.6.0): resolution: {integrity: sha512-+PnZ2u/BS+f5FiuHXz4zKsHPcMKHie+K+1Uvu/x91ovkCMEOJqEI8E9Tw1Wzx2QRz4MHOBHYf1ypO8N1K0aNAA==} engines: {node: ^18.0.0 || >= 20.0.0} peerDependencies: @@ -4239,7 +4234,7 @@ packages: '@typescript-eslint/eslint-plugin': 7.4.0(@typescript-eslint/parser@7.4.0)(eslint@8.57.0)(typescript@5.4.3) '@typescript-eslint/utils': 7.4.0(eslint@8.57.0)(typescript@5.4.3) eslint: 8.57.0 - vitest: 1.4.0(@types/node@16.18.93) + vitest: 1.6.0(@types/node@16.18.93) transitivePeerDependencies: - supports-color - typescript @@ -8041,8 +8036,8 @@ packages: resolution: {integrity: sha512-N8hW3PG/3aOoZAN5V/NSAEDz0ZixDSSt5b/a05iqtpgfLWMSVuCo7w0k2vVvEjdrIoeGqZzweX2WlyioNIHchA==} dev: true - /tinypool@0.8.2: - resolution: {integrity: sha512-SUszKYe5wgsxnNOVlBYO6IC+8VGWdVGZWAqUxp3UErNBtptZvWbwyUOyzNL59zigz2rCA92QiL3wvG+JDSdJdQ==} + /tinypool@0.8.4: + resolution: {integrity: sha512-i11VH5gS6IFeLY3gMBQ00/MmLncVP7JLXOw1vlgkytLmJK7QnEr7NXf0LBdxfmNPAeyetukOk0bOYrJrFGjYJQ==} engines: {node: '>=14.0.0'} dev: true @@ -8426,15 +8421,6 @@ packages: resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} dev: true - /v8-to-istanbul@9.2.0: - resolution: {integrity: sha512-/EH/sDgxU2eGxajKdwLCDmQ4FWq+kpi3uCmBGpw1xJtnAxEjlD8j8PEiGWpCIMIs3ciNAgH0d3TTJiUkYzyZjA==} - engines: {node: '>=10.12.0'} - dependencies: - '@jridgewell/trace-mapping': 0.3.25 - '@types/istanbul-lib-coverage': 2.0.6 - convert-source-map: 2.0.0 - dev: true - /validate-npm-package-license@3.0.4: resolution: {integrity: sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==} dependencies: @@ -8463,8 +8449,8 @@ packages: semver: 7.6.0 dev: true - /vite-node@1.4.0(@types/node@16.18.93): - resolution: {integrity: sha512-VZDAseqjrHgNd4Kh8icYHWzTKSCZMhia7GyHfhtzLW33fZlG9SwsB6CEhgyVOWkJfJ2pFLrp/Gj1FSfAiqH9Lw==} + /vite-node@1.6.0(@types/node@16.18.93): + resolution: {integrity: sha512-de6HJgzC+TFzOu0NTC4RAIsyf/DY/ibWDYQUcuEA84EMHhcefTUGkjFHKKEJhQN4A+6I0u++kr3l36ZF2d7XRw==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true dependencies: @@ -8536,15 +8522,15 @@ packages: fsevents: 2.3.3 dev: true - /vitest@1.4.0(@types/node@16.18.93): - resolution: {integrity: sha512-gujzn0g7fmwf83/WzrDTnncZt2UiXP41mHuFYFrdwaLRVQ6JYQEiME2IfEjU3vcFL3VKa75XhI3lFgn+hfVsQw==} + /vitest@1.6.0(@types/node@16.18.93): + resolution: {integrity: sha512-H5r/dN06swuFnzNFhq/dnz37bPXnq8xB2xB5JOVk8K09rUtoeNN+LHWkoQ0A/i3hvbUKKcCei9KpbxqHMLhLLA==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: '@edge-runtime/vm': '*' '@types/node': ^18.0.0 || >=20.0.0 - '@vitest/browser': 1.4.0 - '@vitest/ui': 1.4.0 + '@vitest/browser': 1.6.0 + '@vitest/ui': 1.6.0 happy-dom: '*' jsdom: '*' peerDependenciesMeta: @@ -8562,11 +8548,11 @@ packages: optional: true dependencies: '@types/node': 16.18.93 - '@vitest/expect': 1.4.0 - '@vitest/runner': 1.4.0 - '@vitest/snapshot': 1.4.0 - '@vitest/spy': 1.4.0 - '@vitest/utils': 1.4.0 + '@vitest/expect': 1.6.0 + '@vitest/runner': 1.6.0 + '@vitest/snapshot': 1.6.0 + '@vitest/spy': 1.6.0 + '@vitest/utils': 1.6.0 acorn-walk: 8.3.2 chai: 4.4.1 debug: 4.3.4 @@ -8578,9 +8564,9 @@ packages: std-env: 3.7.0 strip-literal: 2.0.0 tinybench: 2.6.0 - tinypool: 0.8.2 + tinypool: 0.8.4 vite: 5.1.6(@types/node@16.18.93) - vite-node: 1.4.0(@types/node@16.18.93) + vite-node: 1.6.0(@types/node@16.18.93) why-is-node-running: 2.2.2 transitivePeerDependencies: - less From c2f586564d8569044c00e5aed9c4c09b70b5ff9b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 19 Jun 2024 08:08:39 +0000 Subject: [PATCH 7/9] build(deps): update dependency is-immutable-type to v4 --- package.json | 2 +- pnpm-lock.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index b2819d8b1..591a67259 100644 --- a/package.json +++ b/package.json @@ -93,7 +93,7 @@ "@typescript-eslint/utils": "^7.3.1", "deepmerge-ts": "^5.1.0", "escape-string-regexp": "^4.0.0", - "is-immutable-type": "^3.1.0", + "is-immutable-type": "^4.0.0", "semver": "^7.6.0", "ts-api-utils": "^1.3.0" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a36cede96..3a33ce666 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,8 +15,8 @@ dependencies: specifier: ^4.0.0 version: 4.0.0 is-immutable-type: - specifier: ^3.1.0 - version: 3.1.0(eslint@8.57.0)(typescript@5.4.3) + specifier: ^4.0.0 + version: 4.0.0(eslint@8.57.0)(typescript@5.4.3) semver: specifier: ^7.6.0 version: 7.6.0 @@ -5372,8 +5372,8 @@ packages: - supports-color dev: true - /is-immutable-type@3.1.0(eslint@8.57.0)(typescript@5.4.3): - resolution: {integrity: sha512-EIAsgCk/4tEohdqKa5iGf1+IwoRYV/81Fe1awSspgobMxOmmxTZslvkH/PAtSKtR2NDFXGVkZZNqiLQA37GKBQ==} + /is-immutable-type@4.0.0(eslint@8.57.0)(typescript@5.4.3): + resolution: {integrity: sha512-gyFBCXv+NikTs8/PGZhgjbMmFZQ5jvHGZIsVu6+/9Bk4K7imlWBIDN7hTr9fNioGzFg71I4YM3z8f0aKXarTAw==} peerDependencies: eslint: '*' typescript: '>=4.7.4' From f6901a6d00872ea60c9e72fe8f381d73b5127197 Mon Sep 17 00:00:00 2001 From: RebeccaStevens Date: Wed, 19 Jun 2024 08:28:09 +0000 Subject: [PATCH 8/9] test: improve ReadonlyDeep pattern regex (#835) --- tests/rules/prefer-immutable-types/ts/parameters/invalid.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/rules/prefer-immutable-types/ts/parameters/invalid.ts b/tests/rules/prefer-immutable-types/ts/parameters/invalid.ts index 2d351458e..a5377dd68 100644 --- a/tests/rules/prefer-immutable-types/ts/parameters/invalid.ts +++ b/tests/rules/prefer-immutable-types/ts/parameters/invalid.ts @@ -312,7 +312,7 @@ const tests: Array< ReadonlyDeep: [ [ { - pattern: "^Readonly<(.+)>|(.+)$", + pattern: "^(?!ReadonlyDeep)(?:Readonly<(.+)>|(.+))$", replace: "ReadonlyDeep<$1$2>", }, ], @@ -455,7 +455,7 @@ const tests: Array< fixer: { ReadonlyDeep: [ { - pattern: "^Readonly<(.+)>|(.+)$", + pattern: "^(?!ReadonlyDeep)(?:Readonly<(.+)>|(.+))$", replace: "ReadonlyDeep<$1$2>", }, ], From 3ed5aa6efdd7933e45f10c69c1b70c3737a3d338 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 19 Jun 2024 08:58:05 +0000 Subject: [PATCH 9/9] chore(release): 6.5.2 [skip ci] ## [6.5.2](https://github.com/eslint-functional/eslint-plugin-functional/compare/v6.5.1...v6.5.2) (2024-06-19) --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 01f1b7b11..246d734be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Changelog All notable changes to this project will be documented in this file. Dates are displayed in UTC. +## [6.5.2](https://github.com/eslint-functional/eslint-plugin-functional/compare/v6.5.1...v6.5.2) (2024-06-19) + ## [6.5.1](https://github.com/eslint-functional/eslint-plugin-functional/compare/v6.5.0...v6.5.1) (2024-04-15)