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

Commit abcd666

Browse files
Replace devDependency @typescript-eslint/experimental-utils with @typescript-eslint/utils (#453)
1 parent e8d2d08 commit abcd666

Some content is hidden

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

51 files changed

+52
-76
lines changed

package-lock.json

Lines changed: 1 addition & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
"@types/lodash": "4.14.182",
4545
"@types/minimist": "1.2.2",
4646
"@types/node": "14.14.31",
47-
"@typescript-eslint/experimental-utils": "5.30.7",
4847
"@typescript-eslint/parser": "5.30.7",
48+
"@typescript-eslint/utils": "5.30.7",
4949
"eslint": "8.47.0",
5050
"eslint-config-prettier": "8.5.0",
5151
"eslint-plugin-import": "2.26.0",

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* along with this program; if not, write to the Free Software Foundation,
1818
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1919
*/
20-
import type { TSESLint } from '@typescript-eslint/experimental-utils';
20+
import type { TSESLint } from '@typescript-eslint/utils';
2121

2222
const sonarjsRules: string[] = [
2323
'cognitive-complexity',

src/rules/cognitive-complexity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020
// https://sonarsource.github.io/rspec/#/rspec/S3776
2121

22-
import type { TSESLint, TSESTree } from '@typescript-eslint/experimental-utils';
22+
import type { TSESLint, TSESTree } from '@typescript-eslint/utils';
2323
import { isIfStatement, isLogicalExpression } from '../utils/nodes';
2424
import {
2525
getFirstToken,

src/rules/elseif-without-else.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020
// https://sonarsource.github.io/rspec/#/rspec/S126
2121

22-
import type { TSESTree, TSESLint } from '@typescript-eslint/experimental-utils';
22+
import type { TSESTree, TSESLint } from '@typescript-eslint/utils';
2323
import docsUrl from '../utils/docs-url';
2424

2525
const rule: TSESLint.RuleModule<string, string[]> = {

src/rules/max-switch-cases.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020
// https://sonarsource.github.io/rspec/#/rspec/S1479
2121

22-
import type { TSESTree, TSESLint } from '@typescript-eslint/experimental-utils';
22+
import type { TSESTree, TSESLint } from '@typescript-eslint/utils';
2323
import docsUrl from '../utils/docs-url';
2424

2525
const DEFAULT_MAX_SWITCH_CASES = 30;

src/rules/no-all-duplicated-branches.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020
// https://sonarsource.github.io/rspec/#/rspec/S3923
2121

22-
import type { TSESTree, TSESLint } from '@typescript-eslint/experimental-utils';
22+
import type { TSESTree, TSESLint } from '@typescript-eslint/utils';
2323
import { isIfStatement } from '../utils/nodes';
2424
import { areEquivalent } from '../utils/equivalence';
2525
import { collectIfBranches, collectSwitchBranches } from '../utils/conditions';

src/rules/no-collapsible-if.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020
// https://sonarsource.github.io/rspec/#/rspec/S1066
2121

22-
import type { TSESTree, TSESLint } from '@typescript-eslint/experimental-utils';
22+
import type { TSESTree, TSESLint } from '@typescript-eslint/utils';
2323
import { isIfStatement, isBlockStatement } from '../utils/nodes';
2424
import { report, issueLocation } from '../utils/locations';
2525
import docsUrl from '../utils/docs-url';

src/rules/no-collection-size-mischeck.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020
// https://sonarsource.github.io/rspec/#/rspec/S3981
2121

22-
import type { TSESTree, TSESLint } from '@typescript-eslint/experimental-utils';
22+
import type { TSESTree, TSESLint } from '@typescript-eslint/utils';
2323
import { isRequiredParserServices, RequiredParserServices } from '../utils/parser-services';
2424
import docsUrl from '../utils/docs-url';
2525

src/rules/no-duplicate-string.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020
// https://sonarsource.github.io/rspec/#/rspec/S1192
2121

22-
import type { TSESTree, TSESLint } from '@typescript-eslint/experimental-utils';
22+
import type { TSESTree, TSESLint } from '@typescript-eslint/utils';
2323
import docsUrl from '../utils/docs-url';
2424
import { issueLocation, report } from '../utils/locations';
2525

0 commit comments

Comments
 (0)