Skip to content

Commit 9a334d3

Browse files
chore: update dependencies (#390)
1 parent ef03394 commit 9a334d3

File tree

6 files changed

+17
-21
lines changed

6 files changed

+17
-21
lines changed

jest.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
module.exports = {
2-
testEnvironment: 'jest-environment-jsdom',
32
testMatch: ['**/tests/**/*.test.ts'],
43
transform: {
54
'^.+\\.tsx?$': 'ts-jest',

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

+11-12
Original file line numberDiff line numberDiff line change
@@ -40,31 +40,30 @@
4040
"semantic-release": "semantic-release"
4141
},
4242
"dependencies": {
43-
"@typescript-eslint/experimental-utils": "^4.21.0"
43+
"@typescript-eslint/experimental-utils": "^4.24.0"
4444
},
4545
"devDependencies": {
46-
"@commitlint/cli": "^12.1.1",
47-
"@commitlint/config-conventional": "^12.1.1",
48-
"@types/jest": "^26.0.22",
49-
"@typescript-eslint/eslint-plugin": "^4.21.0",
50-
"@typescript-eslint/parser": "^4.21.0",
46+
"@commitlint/cli": "^12.1.4",
47+
"@commitlint/config-conventional": "^12.1.4",
48+
"@types/jest": "^26.0.23",
49+
"@typescript-eslint/eslint-plugin": "^4.24.0",
50+
"@typescript-eslint/parser": "^4.24.0",
5151
"cpy-cli": "^3.1.1",
52-
"eslint": "^7.26.0",
52+
"eslint": "^7.27.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",
57-
"eslint-plugin-jest-formatting": "^2.0.1",
57+
"eslint-plugin-jest-formatting": "^3.0.0",
5858
"eslint-plugin-node": "^11.1.0",
5959
"eslint-plugin-prettier": "^3.4.0",
6060
"eslint-plugin-promise": "^5.1.0",
6161
"husky": "^4.3.8",
6262
"jest": "^26.6.3",
63-
"jest-environment-jsdom": "^25.5.0",
6463
"lint-staged": "^10.5.4",
6564
"prettier": "2.3.0",
66-
"semantic-release": "^17.4.2",
67-
"ts-jest": "^26.5.4",
65+
"semantic-release": "^17.4.3",
66+
"ts-jest": "^26.5.6",
6867
"typescript": "^4.2.4"
6968
},
7069
"peerDependencies": {

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)