Skip to content

Commit

Permalink
feat: upgrade old dependencies (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Mar 5, 2023
1 parent bce2303 commit 5211c56
Show file tree
Hide file tree
Showing 4 changed files with 187 additions and 218 deletions.
10 changes: 2 additions & 8 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
{
"extends": ["airbnb-base", "prettier"],
"extends": ["airbnb-base", "prettier", "prettier/prettier"],
"plugins": ["prettier", "jest"],
"parserOptions": {
"ecmaVersion": 11
},
"rules": {
"no-underscore-dangle": 0,
"arrow-body-style": 0,
"prettier/prettier": [
"error",
{
"singleQuote": true,
"trailingComma": "all"
}
]
"prettier/prettier": 2
},
"env": {
"jest/globals": true
Expand Down
40 changes: 7 additions & 33 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,43 +18,17 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 19.x]
eslint-version: [6, 7, 8]
jest-version: [25, 26, 27, 28, 29]
jest-watch-typeahead-version: [0.6, 1]
include:
# eslint@7 and jest@26 don't support node@8
- node-version: 8.x
eslint-version: 6
jest-version: 25
node-version: [12.x, 14.x, 16.x, 18.x, 19.x]
eslint-version: [7, 8]
jest-version: [27, 28, 29]
jest-watch-typeahead-version: [1, 2]
exclude:
# eslint@8 doesn't support node@10
- node-version: 10.x
eslint-version: 8
# jest@28 doesn't support node@10
- node-version: 10.x
jest-version: 28
# jest@29 doesn't support node@10
- node-version: 10.x
jest-version: 29
# jest@29 doesn't support node@12
- node-version: 12.x
jest-version: 29
# jest-watch-typeahead@1 doesn't support jest@25
- jest-version: 25
jest-watch-typeahead-version: 1
# jest-watch-typeahead@1 doesn't support jest@26
- jest-version: 26
jest-watch-typeahead-version: 1
# jest-watch-typeahead@0.6 doesn't support jest@27
- jest-version: 27
jest-watch-typeahead-version: 0.6
# jest-watch-typeahead@0.6 doesn't support jest@28
- jest-version: 28
jest-watch-typeahead-version: 0.6
# jest-watch-typeahead@0.6 doesn't support jest@29
- jest-version: 29
jest-watch-typeahead-version: 0.6
# jest-watch-typeahead@2 doesn't support node@12
- node-version: 12
jest-watch-typeahead-version: 2
# Modern timers need Jest 29.2.1 on Node 19: https://github.com/facebook/jest/pull/13467
- node-version: 19.x
jest-version: 28
Expand Down
33 changes: 17 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,41 +24,42 @@
"format": "prettier --write \"**/*.js\""
},
"dependencies": {
"chalk": "^3.0.0",
"cosmiconfig": "^6.0.0",
"create-jest-runner": "^0.6.0",
"chalk": "^4.0.0",
"cosmiconfig": "^7.0.0",
"create-jest-runner": "^0.11.2",
"dot-prop": "^5.3.0"
},
"devDependencies": {
"@babel/cli": "^7.10.4",
"@babel/core": "^7.10.4",
"@babel/preset-env": "^7.10.4",
"babel-jest": "^25.1 || ^26 || ^27 || ^28 || ^29",
"eslint": "^6 || ^7 || ^8",
"eslint-config-airbnb-base": "^14.2.0",
"eslint-config-prettier": "^6.11.0",
"babel-jest": "^27 || ^28 || ^29",
"eslint": "^7 || ^8",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^7.2.0",
"eslint-formatter-codeframe": "^7.32.1",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jest": "^23.17.1",
"eslint-plugin-jest": "^26.9.0",
"eslint-plugin-prettier": "^3.1.4",
"execa": "^3.4.0",
"jest": "^25.1 || ^26 || ^27 || ^28 || ^29",
"execa": "^5.1.1",
"jest": "^27 || ^28 || ^29",
"jest-watch-select-projects": "^2.0.0",
"jest-watch-typeahead": "^0.6.4 || ^1.1.0 || ^2.1.1",
"prettier": "1.19.1",
"jest-watch-typeahead": "^1.1.0 || ^2.1.1",
"prettier": "^2.8.4",
"rimraf": "^3.0.2",
"semver": "^6.3.0"
"semver": "^7.3.8"
},
"peerDependencies": {
"eslint": "^6 || ^7 || ^8",
"jest": "^25.1 || ^26 || ^27 || ^28 || ^29"
"eslint": "^7 || ^8",
"jest": "^27 || ^28 || ^29"
},
"prettier": {
"arrowParens": "avoid",
"proseWrap": "never",
"singleQuote": true,
"trailingComma": "all"
},
"engines": {
"node": ">=8.10.0"
"node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=18.0.0"
}
}

0 comments on commit 5211c56

Please sign in to comment.