Skip to content

Commit f03f6ef

Browse files
fix: move to non-experimental TS-ESLint utils (#550)
1 parent 9b8e5fb commit f03f6ef

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+46
-65
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"no-restricted-imports": [
3737
"error",
3838
{
39-
"patterns": ["@typescript-eslint/experimental-utils/dist/*"]
39+
"patterns": ["@typescript-eslint/utils/dist/*"]
4040
}
4141
],
4242

lib/configs/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { join } from 'path';
22

3-
import type { TSESLint } from '@typescript-eslint/experimental-utils';
3+
import type { TSESLint } from '@typescript-eslint/utils';
44

55
import {
66
importDefault,

lib/create-testing-library-rule/detect-testing-library-utils.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
import {
2-
ASTUtils,
3-
TSESLint,
4-
TSESTree,
5-
} from '@typescript-eslint/experimental-utils';
1+
import { ASTUtils, TSESLint, TSESTree } from '@typescript-eslint/utils';
62

73
import {
84
findClosestVariableDeclaratorNode,

lib/create-testing-library-rule/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ESLintUtils, TSESLint } from '@typescript-eslint/experimental-utils';
1+
import { ESLintUtils, TSESLint } from '@typescript-eslint/utils';
22

33
import { getDocsUrl, TestingLibraryRuleMeta } from '../utils';
44

lib/node-utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
TSESLint,
55
TSESLintScope,
66
TSESTree,
7-
} from '@typescript-eslint/experimental-utils';
7+
} from '@typescript-eslint/utils';
88

99
import {
1010
isArrayExpression,

lib/node-utils/is-node-of-type.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import {
2-
AST_NODE_TYPES,
3-
TSESTree,
4-
} from '@typescript-eslint/experimental-utils';
1+
import { AST_NODE_TYPES, TSESTree } from '@typescript-eslint/utils';
52

63
const isNodeOfType =
74
<NodeType extends AST_NODE_TYPES>(nodeType: NodeType) =>

lib/rules/await-async-query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ASTUtils, TSESTree } from '@typescript-eslint/experimental-utils';
1+
import { ASTUtils, TSESTree } from '@typescript-eslint/utils';
22

33
import { createTestingLibraryRule } from '../create-testing-library-rule';
44
import {

lib/rules/await-async-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TSESTree } from '@typescript-eslint/experimental-utils';
1+
import { TSESTree } from '@typescript-eslint/utils';
22

33
import { createTestingLibraryRule } from '../create-testing-library-rule';
44
import {

lib/rules/await-fire-event.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ASTUtils, TSESTree } from '@typescript-eslint/experimental-utils';
1+
import { ASTUtils, TSESTree } from '@typescript-eslint/utils';
22

33
import { createTestingLibraryRule } from '../create-testing-library-rule';
44
import {

lib/rules/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { readdirSync } from 'fs';
22
import { join, parse } from 'path';
33

4-
import { TSESLint } from '@typescript-eslint/experimental-utils';
4+
import { TSESLint } from '@typescript-eslint/utils';
55

66
import { importDefault, TestingLibraryRuleMeta } from '../utils';
77

0 commit comments

Comments
 (0)