Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
fix(deps): use @typescript-eslint/utils instead of experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
gund committed Apr 5, 2023
1 parent 1c56aa6 commit 448004c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 38 deletions.
28 changes: 1 addition & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"semantic-release": "semantic-release"
},
"dependencies": {
"@typescript-eslint/experimental-utils": "^5.57.0",
"@typescript-eslint/utils": "^5.57.0",
"tslib": "^2.3.1",
"tsutils": "^3.21.0"
},
Expand Down
6 changes: 1 addition & 5 deletions src/rules/deprecation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import {
ESLintUtils,
TSESLint,
TSESTree,
} from '@typescript-eslint/experimental-utils';
import { ESLintUtils, TSESLint, TSESTree } from '@typescript-eslint/utils';
import { isReassignmentTarget } from 'tsutils';
import * as ts from 'typescript';
import { stringifyJSDocTagInfoText } from '../utils/stringifyJSDocTagInfoText';
Expand Down
10 changes: 5 additions & 5 deletions tests/rules/deprecation.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TSESLint, ESLintUtils } from '@typescript-eslint/experimental-utils';
import { TSESLint, ESLintUtils } from '@typescript-eslint/utils';
import rule, { MessageIds, Options } from '../../src/rules/deprecation';
import * as path from 'path';

Expand Down Expand Up @@ -181,10 +181,10 @@ ruleTester.run('deprecation', rule, {
const obj = new Class();
obj.method('');
`),
// Method overloads in interfaces extending a class
// This notation used to be mentioned in the TypeScript handbook
// See https://www.typescriptlang.org/docs/handbook/classes.html#using-a-class-as-an-interface
getValidTestCase(`
// Method overloads in interfaces extending a class
// This notation used to be mentioned in the TypeScript handbook
// See https://www.typescriptlang.org/docs/handbook/classes.html#using-a-class-as-an-interface
getValidTestCase(`
class Class {}
interface Interface extends Class {
method(param: string): void;
Expand Down

0 comments on commit 448004c

Please sign in to comment.