Skip to content

Commit 5211c56

Browse files
authored
feat: upgrade old dependencies (#154)
1 parent bce2303 commit 5211c56

File tree

4 files changed

+187
-218
lines changed

4 files changed

+187
-218
lines changed

.eslintrc.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
11
{
2-
"extends": ["airbnb-base", "prettier"],
2+
"extends": ["airbnb-base", "prettier", "prettier/prettier"],
33
"plugins": ["prettier", "jest"],
44
"parserOptions": {
55
"ecmaVersion": 11
66
},
77
"rules": {
88
"no-underscore-dangle": 0,
99
"arrow-body-style": 0,
10-
"prettier/prettier": [
11-
"error",
12-
{
13-
"singleQuote": true,
14-
"trailingComma": "all"
15-
}
16-
]
10+
"prettier/prettier": 2
1711
},
1812
"env": {
1913
"jest/globals": true

.github/workflows/nodejs.yml

Lines changed: 7 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -18,43 +18,17 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 19.x]
22-
eslint-version: [6, 7, 8]
23-
jest-version: [25, 26, 27, 28, 29]
24-
jest-watch-typeahead-version: [0.6, 1]
25-
include:
26-
# eslint@7 and jest@26 don't support node@8
27-
- node-version: 8.x
28-
eslint-version: 6
29-
jest-version: 25
21+
node-version: [12.x, 14.x, 16.x, 18.x, 19.x]
22+
eslint-version: [7, 8]
23+
jest-version: [27, 28, 29]
24+
jest-watch-typeahead-version: [1, 2]
3025
exclude:
31-
# eslint@8 doesn't support node@10
32-
- node-version: 10.x
33-
eslint-version: 8
34-
# jest@28 doesn't support node@10
35-
- node-version: 10.x
36-
jest-version: 28
37-
# jest@29 doesn't support node@10
38-
- node-version: 10.x
39-
jest-version: 29
4026
# jest@29 doesn't support node@12
4127
- node-version: 12.x
4228
jest-version: 29
43-
# jest-watch-typeahead@1 doesn't support jest@25
44-
- jest-version: 25
45-
jest-watch-typeahead-version: 1
46-
# jest-watch-typeahead@1 doesn't support jest@26
47-
- jest-version: 26
48-
jest-watch-typeahead-version: 1
49-
# jest-watch-typeahead@0.6 doesn't support jest@27
50-
- jest-version: 27
51-
jest-watch-typeahead-version: 0.6
52-
# jest-watch-typeahead@0.6 doesn't support jest@28
53-
- jest-version: 28
54-
jest-watch-typeahead-version: 0.6
55-
# jest-watch-typeahead@0.6 doesn't support jest@29
56-
- jest-version: 29
57-
jest-watch-typeahead-version: 0.6
29+
# jest-watch-typeahead@2 doesn't support node@12
30+
- node-version: 12
31+
jest-watch-typeahead-version: 2
5832
# Modern timers need Jest 29.2.1 on Node 19: https://github.com/facebook/jest/pull/13467
5933
- node-version: 19.x
6034
jest-version: 28

package.json

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,41 +24,42 @@
2424
"format": "prettier --write \"**/*.js\""
2525
},
2626
"dependencies": {
27-
"chalk": "^3.0.0",
28-
"cosmiconfig": "^6.0.0",
29-
"create-jest-runner": "^0.6.0",
27+
"chalk": "^4.0.0",
28+
"cosmiconfig": "^7.0.0",
29+
"create-jest-runner": "^0.11.2",
3030
"dot-prop": "^5.3.0"
3131
},
3232
"devDependencies": {
3333
"@babel/cli": "^7.10.4",
3434
"@babel/core": "^7.10.4",
3535
"@babel/preset-env": "^7.10.4",
36-
"babel-jest": "^25.1 || ^26 || ^27 || ^28 || ^29",
37-
"eslint": "^6 || ^7 || ^8",
38-
"eslint-config-airbnb-base": "^14.2.0",
39-
"eslint-config-prettier": "^6.11.0",
36+
"babel-jest": "^27 || ^28 || ^29",
37+
"eslint": "^7 || ^8",
38+
"eslint-config-airbnb-base": "^15.0.0",
39+
"eslint-config-prettier": "^7.2.0",
4040
"eslint-formatter-codeframe": "^7.32.1",
4141
"eslint-plugin-import": "^2.22.0",
42-
"eslint-plugin-jest": "^23.17.1",
42+
"eslint-plugin-jest": "^26.9.0",
4343
"eslint-plugin-prettier": "^3.1.4",
44-
"execa": "^3.4.0",
45-
"jest": "^25.1 || ^26 || ^27 || ^28 || ^29",
44+
"execa": "^5.1.1",
45+
"jest": "^27 || ^28 || ^29",
4646
"jest-watch-select-projects": "^2.0.0",
47-
"jest-watch-typeahead": "^0.6.4 || ^1.1.0 || ^2.1.1",
48-
"prettier": "1.19.1",
47+
"jest-watch-typeahead": "^1.1.0 || ^2.1.1",
48+
"prettier": "^2.8.4",
4949
"rimraf": "^3.0.2",
50-
"semver": "^6.3.0"
50+
"semver": "^7.3.8"
5151
},
5252
"peerDependencies": {
53-
"eslint": "^6 || ^7 || ^8",
54-
"jest": "^25.1 || ^26 || ^27 || ^28 || ^29"
53+
"eslint": "^7 || ^8",
54+
"jest": "^27 || ^28 || ^29"
5555
},
5656
"prettier": {
57+
"arrowParens": "avoid",
5758
"proseWrap": "never",
5859
"singleQuote": true,
5960
"trailingComma": "all"
6061
},
6162
"engines": {
62-
"node": ">=8.10.0"
63+
"node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=18.0.0"
6364
}
6465
}

0 commit comments

Comments
 (0)