Skip to content

Commit edc76bc

Browse files
committed
refactor: update eslint-plugin-import formatting
1 parent d681d5f commit edc76bc

File tree

5 files changed

+7
-9
lines changed

5 files changed

+7
-9
lines changed

lib/configs/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { join } from 'path';
22

3+
import type { TSESLint } from '@typescript-eslint/experimental-utils';
4+
35
import {
46
importDefault,
57
SUPPORTED_TESTING_FRAMEWORKS,
68
SupportedTestingFramework,
79
} from '../utils';
810

9-
import type { TSESLint } from '@typescript-eslint/experimental-utils';
10-
1111
export type LinterConfigRules = Record<string, TSESLint.Linter.RuleEntry>;
1212

1313
const configsDir = __dirname;

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"eslint": "^7.26.0",
5353
"eslint-config-kentcdodds": "^18.1.0",
5454
"eslint-config-prettier": "^8.3.0",
55-
"eslint-plugin-import": "^2.23.2",
55+
"eslint-plugin-import": "^2.23.3",
5656
"eslint-plugin-jest": "^24.3.6",
5757
"eslint-plugin-jest-formatting": "^2.0.1",
5858
"eslint-plugin-node": "^11.1.0",

tests/lib/rules/consistent-data-testid.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1+
import type { TSESLint } from '@typescript-eslint/experimental-utils';
2+
13
import rule, {
24
MessageIds,
35
Options,
46
RULE_NAME,
57
} from '../../../lib/rules/consistent-data-testid';
68
import { createRuleTester } from '../test-utils';
79

8-
import type { TSESLint } from '@typescript-eslint/experimental-utils';
9-
1010
const ruleTester = createRuleTester();
1111

1212
type ValidTestCase = TSESLint.ValidTestCase<Options>;

tools/generate-configs/index.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import type { LinterConfigRules } from '../../lib/configs';
12
import rules from '../../lib/rules';
23
import {
34
SUPPORTED_TESTING_FRAMEWORKS,
@@ -6,8 +7,6 @@ import {
67

78
import { LinterConfig, writeConfig } from './utils';
89

9-
import type { LinterConfigRules } from '../../lib/configs';
10-
1110
const RULE_NAME_PREFIX = 'testing-library/';
1211

1312
const getRecommendedRulesForTestingFramework = (

tools/generate-configs/utils.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import { writeFileSync } from 'fs';
22
import { resolve } from 'path';
33

4-
import { format, resolveConfig } from 'prettier';
5-
64
import type { TSESLint } from '@typescript-eslint/experimental-utils';
5+
import { format, resolveConfig } from 'prettier';
76

87
const prettierConfig = resolveConfig.sync(__dirname);
98

0 commit comments

Comments
 (0)