Skip to content

Commit

Permalink
chore: experimental-utils -> utils
Browse files Browse the repository at this point in the history
  • Loading branch information
roikoren755 committed Feb 9, 2022
1 parent 4bbcfbe commit 789ef15
Show file tree
Hide file tree
Showing 129 changed files with 643 additions and 316 deletions.
690 changes: 508 additions & 182 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"prettier": "2.5.1"
},
"dependencies": {
"@typescript-eslint/experimental-utils": "5.11.0",
"@typescript-eslint/utils": "^5.0.0",
"regexpp": "3.2.0"
},
"devDependencies": {
Expand All @@ -55,6 +55,7 @@
"@typescript-eslint/parser": "5.11.0",
"@typescript-eslint/types": "5.11.0",
"@typescript-eslint/typescript-estree": "5.11.0",
"@typescript-eslint/utils": "5.11.0",
"camelcase": "6.3.0",
"eslint": "8.7.0",
"eslint-config-prettier": "8.3.0",
Expand Down
2 changes: 1 addition & 1 deletion scripts/new-rule.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { writeFileSync } from 'fs';
import path from 'path';

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

const run = async (appliedRuleId: string): Promise<void> => {
if (!appliedRuleId) {
Expand Down
2 changes: 1 addition & 1 deletion scripts/rules.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { readdirSync } from 'fs';
import path from 'path';

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

const libRoot = path.resolve(__dirname, '../src/rules');

Expand Down
2 changes: 1 addition & 1 deletion scripts/update-docs-rules.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { readFileSync, readdirSync, writeFileSync } from 'fs';
import path from 'path';

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

import { version } from '../package.json';

Expand Down
4 changes: 2 additions & 2 deletions scripts/update-src-configs.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { writeFileSync } from 'fs';
import path from 'path';

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

import { categories } from './rules';

Expand All @@ -24,7 +24,7 @@ const wrapCode = (code: string): string => `/**
* DON'T EDIT THIS FILE.
* This file was generated by 'scripts/update-src-configs.ts' script.
*/
import type { TSESLint } from '@typescript-eslint/experimental-utils';
import type { TSESLint } from '@typescript-eslint/utils';
const config: TSESLint.Linter.Config = ${code};
Expand Down
2 changes: 1 addition & 1 deletion scripts/update-src-index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { readdirSync, writeFileSync } from 'fs';
import path from 'path';

import { TSESLint } from '@typescript-eslint/experimental-utils';
import { TSESLint } from '@typescript-eslint/utils';
import camelcase from 'camelcase';

import { rules } from './rules';
Expand Down
2 changes: 1 addition & 1 deletion src/configs/no-new-in-es2015.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* DON'T EDIT THIS FILE.
* This file was generated by 'scripts/update-src-configs.ts' script.
*/
import type { TSESLint } from '@typescript-eslint/experimental-utils';
import type { TSESLint } from '@typescript-eslint/utils';

const config: TSESLint.Linter.Config = {
plugins: ['es-roikoren'],
Expand Down
2 changes: 1 addition & 1 deletion src/configs/no-new-in-es2016.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* DON'T EDIT THIS FILE.
* This file was generated by 'scripts/update-src-configs.ts' script.
*/
import type { TSESLint } from '@typescript-eslint/experimental-utils';
import type { TSESLint } from '@typescript-eslint/utils';

const config: TSESLint.Linter.Config = {
plugins: ['es-roikoren'],
Expand Down
2 changes: 1 addition & 1 deletion src/configs/no-new-in-es2017.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* DON'T EDIT THIS FILE.
* This file was generated by 'scripts/update-src-configs.ts' script.
*/
import type { TSESLint } from '@typescript-eslint/experimental-utils';
import type { TSESLint } from '@typescript-eslint/utils';

const config: TSESLint.Linter.Config = {
plugins: ['es-roikoren'],
Expand Down
2 changes: 1 addition & 1 deletion src/configs/no-new-in-es2018.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* DON'T EDIT THIS FILE.
* This file was generated by 'scripts/update-src-configs.ts' script.
*/
import type { TSESLint } from '@typescript-eslint/experimental-utils';
import type { TSESLint } from '@typescript-eslint/utils';

const config: TSESLint.Linter.Config = {
plugins: ['es-roikoren'],
Expand Down
2 changes: 1 addition & 1 deletion src/configs/no-new-in-es2019.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* DON'T EDIT THIS FILE.
* This file was generated by 'scripts/update-src-configs.ts' script.
*/
import type { TSESLint } from '@typescript-eslint/experimental-utils';
import type { TSESLint } from '@typescript-eslint/utils';

const config: TSESLint.Linter.Config = {
plugins: ['es-roikoren'],
Expand Down
2 changes: 1 addition & 1 deletion src/configs/no-new-in-es2020.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* DON'T EDIT THIS FILE.
* This file was generated by 'scripts/update-src-configs.ts' script.
*/
import type { TSESLint } from '@typescript-eslint/experimental-utils';
import type { TSESLint } from '@typescript-eslint/utils';

const config: TSESLint.Linter.Config = {
plugins: ['es-roikoren'],
Expand Down
2 changes: 1 addition & 1 deletion src/configs/no-new-in-es2021.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* DON'T EDIT THIS FILE.
* This file was generated by 'scripts/update-src-configs.ts' script.
*/
import type { TSESLint } from '@typescript-eslint/experimental-utils';
import type { TSESLint } from '@typescript-eslint/utils';

const config: TSESLint.Linter.Config = {
plugins: ['es-roikoren'],
Expand Down
2 changes: 1 addition & 1 deletion src/configs/no-new-in-es5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* DON'T EDIT THIS FILE.
* This file was generated by 'scripts/update-src-configs.ts' script.
*/
import type { TSESLint } from '@typescript-eslint/experimental-utils';
import type { TSESLint } from '@typescript-eslint/utils';

const config: TSESLint.Linter.Config = {
plugins: ['es-roikoren'],
Expand Down
2 changes: 1 addition & 1 deletion src/configs/no-new-in-esnext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* DON'T EDIT THIS FILE.
* This file was generated by 'scripts/update-src-configs.ts' script.
*/
import type { TSESLint } from '@typescript-eslint/experimental-utils';
import type { TSESLint } from '@typescript-eslint/utils';

const config: TSESLint.Linter.Config = {
plugins: ['es-roikoren'],
Expand Down
2 changes: 1 addition & 1 deletion src/configs/restrict-to-es2015.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* DON'T EDIT THIS FILE.
* This file was generated by 'scripts/update-src-configs.ts' script.
*/
import type { TSESLint } from '@typescript-eslint/experimental-utils';
import type { TSESLint } from '@typescript-eslint/utils';

const config: TSESLint.Linter.Config = {
extends: [
Expand Down
2 changes: 1 addition & 1 deletion src/configs/restrict-to-es2016.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* DON'T EDIT THIS FILE.
* This file was generated by 'scripts/update-src-configs.ts' script.
*/
import type { TSESLint } from '@typescript-eslint/experimental-utils';
import type { TSESLint } from '@typescript-eslint/utils';

const config: TSESLint.Linter.Config = {
extends: [
Expand Down
2 changes: 1 addition & 1 deletion src/configs/restrict-to-es2017.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* DON'T EDIT THIS FILE.
* This file was generated by 'scripts/update-src-configs.ts' script.
*/
import type { TSESLint } from '@typescript-eslint/experimental-utils';
import type { TSESLint } from '@typescript-eslint/utils';

const config: TSESLint.Linter.Config = {
extends: [
Expand Down
2 changes: 1 addition & 1 deletion src/configs/restrict-to-es2018.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* DON'T EDIT THIS FILE.
* This file was generated by 'scripts/update-src-configs.ts' script.
*/
import type { TSESLint } from '@typescript-eslint/experimental-utils';
import type { TSESLint } from '@typescript-eslint/utils';

const config: TSESLint.Linter.Config = {
extends: [
Expand Down
2 changes: 1 addition & 1 deletion src/configs/restrict-to-es2019.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* DON'T EDIT THIS FILE.
* This file was generated by 'scripts/update-src-configs.ts' script.
*/
import type { TSESLint } from '@typescript-eslint/experimental-utils';
import type { TSESLint } from '@typescript-eslint/utils';

const config: TSESLint.Linter.Config = {
extends: [require.resolve('./no-new-in-es2021'), require.resolve('./no-new-in-es2020')],
Expand Down
2 changes: 1 addition & 1 deletion src/configs/restrict-to-es2020.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* DON'T EDIT THIS FILE.
* This file was generated by 'scripts/update-src-configs.ts' script.
*/
import type { TSESLint } from '@typescript-eslint/experimental-utils';
import type { TSESLint } from '@typescript-eslint/utils';

const config: TSESLint.Linter.Config = { extends: [require.resolve('./no-new-in-es2021')] };

Expand Down
2 changes: 1 addition & 1 deletion src/configs/restrict-to-es3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* DON'T EDIT THIS FILE.
* This file was generated by 'scripts/update-src-configs.ts' script.
*/
import type { TSESLint } from '@typescript-eslint/experimental-utils';
import type { TSESLint } from '@typescript-eslint/utils';

const config: TSESLint.Linter.Config = {
extends: [
Expand Down
2 changes: 1 addition & 1 deletion src/configs/restrict-to-es5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* DON'T EDIT THIS FILE.
* This file was generated by 'scripts/update-src-configs.ts' script.
*/
import type { TSESLint } from '@typescript-eslint/experimental-utils';
import type { TSESLint } from '@typescript-eslint/utils';

const config: TSESLint.Linter.Config = {
extends: [
Expand Down
2 changes: 1 addition & 1 deletion src/configs/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* DON'T EDIT THIS FILE.
* This file was generated by 'scripts/update-src-configs.ts' script.
*/
import type { TSESLint } from '@typescript-eslint/experimental-utils';
import type { TSESLint } from '@typescript-eslint/utils';

const config: TSESLint.Linter.Config = {
plugins: ['es-roikoren'],
Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-array-from.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ASTUtils } from '@typescript-eslint/experimental-utils';
import { ASTUtils } from '@typescript-eslint/utils';

import { createRule } from '../util/create-rule';
import { referenceTracker } from '../util/reference-tracker';
Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-array-isarray.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ASTUtils } from '@typescript-eslint/experimental-utils';
import { ASTUtils } from '@typescript-eslint/utils';

import { createRule } from '../util/create-rule';
import { referenceTracker } from '../util/reference-tracker';
Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-array-of.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ASTUtils } from '@typescript-eslint/experimental-utils';
import { ASTUtils } from '@typescript-eslint/utils';

import { createRule } from '../util/create-rule';
import { referenceTracker } from '../util/reference-tracker';
Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-arrow-functions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ASTUtils } from '@typescript-eslint/experimental-utils';
import type { TSESTree } from '@typescript-eslint/typescript-estree';
import { ASTUtils } from '@typescript-eslint/utils';

import { createRule } from '../util/create-rule';

Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-atomics.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ASTUtils } from '@typescript-eslint/experimental-utils';
import { ASTUtils } from '@typescript-eslint/utils';

import { createRule } from '../util/create-rule';
import { referenceTracker } from '../util/reference-tracker';
Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-bigint.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ASTUtils } from '@typescript-eslint/experimental-utils';
import type { TSESTree } from '@typescript-eslint/typescript-estree';
import { ASTUtils } from '@typescript-eslint/utils';

import { createRule } from '../util/create-rule';
import { referenceTracker } from '../util/reference-tracker';
Expand Down
4 changes: 2 additions & 2 deletions src/rules/no-class-fields.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ASTUtils } from '@typescript-eslint/experimental-utils';
import type { TSESLint } from '@typescript-eslint/experimental-utils';
import type { TSESTree } from '@typescript-eslint/typescript-estree';
import { ASTUtils } from '@typescript-eslint/utils';
import type { TSESLint } from '@typescript-eslint/utils';

import { createRule } from '../util/create-rule';

Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-date-now.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ASTUtils } from '@typescript-eslint/experimental-utils';
import { ASTUtils } from '@typescript-eslint/utils';

import { createRule } from '../util/create-rule';
import { referenceTracker } from '../util/reference-tracker';
Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-global-this.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ASTUtils } from '@typescript-eslint/experimental-utils';
import { ASTUtils } from '@typescript-eslint/utils';

import { createRule } from '../util/create-rule';
import { referenceTracker } from '../util/reference-tracker';
Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-json.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ASTUtils } from '@typescript-eslint/experimental-utils';
import { ASTUtils } from '@typescript-eslint/utils';

import { createRule } from '../util/create-rule';
import { referenceTracker } from '../util/reference-tracker';
Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-logical-assignment-operators.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ASTUtils } from '@typescript-eslint/experimental-utils';
import type { TSESTree } from '@typescript-eslint/typescript-estree';
import { ASTUtils } from '@typescript-eslint/utils';

import { createRule } from '../util/create-rule';

Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-map.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ASTUtils } from '@typescript-eslint/experimental-utils';
import { ASTUtils } from '@typescript-eslint/utils';

import { createRule } from '../util/create-rule';
import { referenceTracker } from '../util/reference-tracker';
Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-math-acosh.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ASTUtils } from '@typescript-eslint/experimental-utils';
import { ASTUtils } from '@typescript-eslint/utils';

import { createRule } from '../util/create-rule';
import { referenceTracker } from '../util/reference-tracker';
Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-math-asinh.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ASTUtils } from '@typescript-eslint/experimental-utils';
import { ASTUtils } from '@typescript-eslint/utils';

import { createRule } from '../util/create-rule';
import { referenceTracker } from '../util/reference-tracker';
Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-math-atanh.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ASTUtils } from '@typescript-eslint/experimental-utils';
import { ASTUtils } from '@typescript-eslint/utils';

import { createRule } from '../util/create-rule';
import { referenceTracker } from '../util/reference-tracker';
Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-math-cbrt.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ASTUtils } from '@typescript-eslint/experimental-utils';
import { ASTUtils } from '@typescript-eslint/utils';

import { createRule } from '../util/create-rule';
import { referenceTracker } from '../util/reference-tracker';
Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-math-clz32.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ASTUtils } from '@typescript-eslint/experimental-utils';
import { ASTUtils } from '@typescript-eslint/utils';

import { createRule } from '../util/create-rule';
import { referenceTracker } from '../util/reference-tracker';
Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-math-cosh.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ASTUtils } from '@typescript-eslint/experimental-utils';
import { ASTUtils } from '@typescript-eslint/utils';

import { createRule } from '../util/create-rule';
import { referenceTracker } from '../util/reference-tracker';
Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-math-expm1.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ASTUtils } from '@typescript-eslint/experimental-utils';
import { ASTUtils } from '@typescript-eslint/utils';

import { createRule } from '../util/create-rule';
import { referenceTracker } from '../util/reference-tracker';
Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-math-fround.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ASTUtils } from '@typescript-eslint/experimental-utils';
import { ASTUtils } from '@typescript-eslint/utils';

import { createRule } from '../util/create-rule';
import { referenceTracker } from '../util/reference-tracker';
Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-math-hypot.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ASTUtils } from '@typescript-eslint/experimental-utils';
import { ASTUtils } from '@typescript-eslint/utils';

import { createRule } from '../util/create-rule';
import { referenceTracker } from '../util/reference-tracker';
Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-math-imul.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ASTUtils } from '@typescript-eslint/experimental-utils';
import { ASTUtils } from '@typescript-eslint/utils';

import { createRule } from '../util/create-rule';
import { referenceTracker } from '../util/reference-tracker';
Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-math-log10.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ASTUtils } from '@typescript-eslint/experimental-utils';
import { ASTUtils } from '@typescript-eslint/utils';

import { createRule } from '../util/create-rule';
import { referenceTracker } from '../util/reference-tracker';
Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-math-log1p.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ASTUtils } from '@typescript-eslint/experimental-utils';
import { ASTUtils } from '@typescript-eslint/utils';

import { createRule } from '../util/create-rule';
import { referenceTracker } from '../util/reference-tracker';
Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-math-log2.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ASTUtils } from '@typescript-eslint/experimental-utils';
import { ASTUtils } from '@typescript-eslint/utils';

import { createRule } from '../util/create-rule';
import { referenceTracker } from '../util/reference-tracker';
Expand Down
2 changes: 1 addition & 1 deletion src/rules/no-math-sign.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ASTUtils } from '@typescript-eslint/experimental-utils';
import { ASTUtils } from '@typescript-eslint/utils';

import { createRule } from '../util/create-rule';
import { referenceTracker } from '../util/reference-tracker';
Expand Down
Loading

0 comments on commit 789ef15

Please sign in to comment.