From 53504ebb4b0b948fd54268b5b60e5b2c0f72aa25 Mon Sep 17 00:00:00 2001 From: Danilo Hoffmann Date: Thu, 31 Mar 2022 18:25:04 +0200 Subject: [PATCH] chore(eslint): change imports from experimental-utils to utils --- .eslintrc.json | 5 +++++ eslint-rules/src/rules/no-formly-explicit-pseudo-type.ts | 2 +- eslint-rules/tests/no-formly-explicit-pseudo-type.spec.ts | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index c33a9f7b2d..82bed9de62 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -339,6 +339,11 @@ "name": "rxjs/operators", "filePattern": "^(?!.*/store/(sentry-config/sentry-config|seo/seo|core/messages/messages)\\.effects\\.ts$).*\\.effects\\.ts*$", "message": "The usage of \"tap\" in effects, if not related to 3rd party integrations, can usually be transformed properly into RxJS stream code." + }, + { + "name": "@typescript-eslint/experimental-utils", + "filePattern": ".*eslint-rules/.*", + "message": "Change to \"@typescript-eslint/utils\"." } ] ], diff --git a/eslint-rules/src/rules/no-formly-explicit-pseudo-type.ts b/eslint-rules/src/rules/no-formly-explicit-pseudo-type.ts index 9fc6d3cf75..0551b4839d 100644 --- a/eslint-rules/src/rules/no-formly-explicit-pseudo-type.ts +++ b/eslint-rules/src/rules/no-formly-explicit-pseudo-type.ts @@ -1,4 +1,4 @@ -import { AST_NODE_TYPES, TSESLint, TSESTree } from '@typescript-eslint/experimental-utils'; +import { AST_NODE_TYPES, TSESLint, TSESTree } from '@typescript-eslint/utils'; /** * Disallows explicitly prefixing formly field types with '#', diff --git a/eslint-rules/tests/no-formly-explicit-pseudo-type.spec.ts b/eslint-rules/tests/no-formly-explicit-pseudo-type.spec.ts index ae4f4e4d2e..98d88c2485 100644 --- a/eslint-rules/tests/no-formly-explicit-pseudo-type.spec.ts +++ b/eslint-rules/tests/no-formly-explicit-pseudo-type.spec.ts @@ -1,4 +1,4 @@ -import { AST_NODE_TYPES } from '@typescript-eslint/experimental-utils'; +import { AST_NODE_TYPES } from '@typescript-eslint/utils'; import { noFormlyExplicitPseudoTypeRule } from '../src/rules/no-formly-explicit-pseudo-type';