File tree 5 files changed +7
-9
lines changed
5 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 1
1
import { join } from 'path' ;
2
2
3
+ import type { TSESLint } from '@typescript-eslint/experimental-utils' ;
4
+
3
5
import {
4
6
importDefault ,
5
7
SUPPORTED_TESTING_FRAMEWORKS ,
6
8
SupportedTestingFramework ,
7
9
} from '../utils' ;
8
10
9
- import type { TSESLint } from '@typescript-eslint/experimental-utils' ;
10
-
11
11
export type LinterConfigRules = Record < string , TSESLint . Linter . RuleEntry > ;
12
12
13
13
const configsDir = __dirname ;
Original file line number Diff line number Diff line change 52
52
"eslint" : " ^7.26.0" ,
53
53
"eslint-config-kentcdodds" : " ^18.1.0" ,
54
54
"eslint-config-prettier" : " ^8.3.0" ,
55
- "eslint-plugin-import" : " ^2.23.2 " ,
55
+ "eslint-plugin-import" : " ^2.23.3 " ,
56
56
"eslint-plugin-jest" : " ^24.3.6" ,
57
57
"eslint-plugin-jest-formatting" : " ^2.0.1" ,
58
58
"eslint-plugin-node" : " ^11.1.0" ,
Original file line number Diff line number Diff line change
1
+ import type { TSESLint } from '@typescript-eslint/experimental-utils' ;
2
+
1
3
import rule , {
2
4
MessageIds ,
3
5
Options ,
4
6
RULE_NAME ,
5
7
} from '../../../lib/rules/consistent-data-testid' ;
6
8
import { createRuleTester } from '../test-utils' ;
7
9
8
- import type { TSESLint } from '@typescript-eslint/experimental-utils' ;
9
-
10
10
const ruleTester = createRuleTester ( ) ;
11
11
12
12
type ValidTestCase = TSESLint . ValidTestCase < Options > ;
Original file line number Diff line number Diff line change
1
+ import type { LinterConfigRules } from '../../lib/configs' ;
1
2
import rules from '../../lib/rules' ;
2
3
import {
3
4
SUPPORTED_TESTING_FRAMEWORKS ,
6
7
7
8
import { LinterConfig , writeConfig } from './utils' ;
8
9
9
- import type { LinterConfigRules } from '../../lib/configs' ;
10
-
11
10
const RULE_NAME_PREFIX = 'testing-library/' ;
12
11
13
12
const getRecommendedRulesForTestingFramework = (
Original file line number Diff line number Diff line change 1
1
import { writeFileSync } from 'fs' ;
2
2
import { resolve } from 'path' ;
3
3
4
- import { format , resolveConfig } from 'prettier' ;
5
-
6
4
import type { TSESLint } from '@typescript-eslint/experimental-utils' ;
5
+ import { format , resolveConfig } from 'prettier' ;
7
6
8
7
const prettierConfig = resolveConfig . sync ( __dirname ) ;
9
8
You can’t perform that action at this time.
0 commit comments