Skip to content

Commit c68d4f2

Browse files
icd2k3jschrader-nr
andauthored
chore: update dependencies (#116)
Co-authored-by: Justin Schrader <[email protected]>
1 parent 2ad7296 commit c68d4f2

File tree

7 files changed

+2812
-2822
lines changed

7 files changed

+2812
-2822
lines changed

.eslintrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
"plugins": ["@typescript-eslint"],
55
"env": { "jasmine": true },
66
"rules": {
7+
"no-use-before-define": "off",
8+
"@typescript-eslint/no-use-before-define": ["error"],
79
"object-curly-newline": 0,
810
"react/destructuring-assignment": 0,
911
"react/jsx-one-expression-per-line": 0,

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
node-version: [12.18.0]
19+
node-version: [14.15.3]
2020

2121
steps:
2222
- uses: actions/checkout@v2

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v12.18.0
1+
v14.15.3

jest.setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
const Enzyme = require('enzyme');
2-
const Adapter = require('enzyme-adapter-react-16');
2+
const Adapter = require('@wojtekmaj/enzyme-adapter-react-17');
33

44
Enzyme.configure({ adapter: new Adapter() });

package.json

Lines changed: 31 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -30,46 +30,43 @@
3030
},
3131
"dependencies": {},
3232
"devDependencies": {
33-
"@babel/cli": "^7.8.4",
34-
"@babel/core": "^7.8.7",
35-
"@babel/preset-env": "^7.8.7",
36-
"@babel/preset-react": "^7.8.3",
37-
"@babel/preset-typescript": "^7.8.3",
38-
"@commitlint/cli": "^8.3.5",
39-
"@commitlint/config-conventional": "^8.3.4",
40-
"@rollup/plugin-commonjs": "^11.0.2",
41-
"@rollup/plugin-node-resolve": "^7.1.1",
42-
"@types/react": "^16.9.23",
43-
"@types/react-dom": "^16.9.5",
44-
"@types/react-router": "^5.1.4",
45-
"@typescript-eslint/eslint-plugin": "^2.24.0",
46-
"@typescript-eslint/parser": "^2.24.0",
33+
"@babel/cli": "^7.12.10",
34+
"@babel/core": "^7.12.10",
35+
"@babel/preset-env": "^7.12.11",
36+
"@babel/preset-react": "^7.12.10",
37+
"@babel/preset-typescript": "^7.12.7",
38+
"@commitlint/cli": "^11.0.0",
39+
"@commitlint/config-conventional": "^11.0.0",
40+
"@rollup/plugin-commonjs": "^17.0.0",
41+
"@rollup/plugin-node-resolve": "^11.0.1",
42+
"@types/react": "^17.0.0",
43+
"@types/react-dom": "^17.0.0",
44+
"@types/react-router": "^5.1.8",
45+
"@typescript-eslint/eslint-plugin": "^4.11.0",
46+
"@typescript-eslint/parser": "^4.11.0",
47+
"@wojtekmaj/enzyme-adapter-react-17": "^0.4.1",
4748
"babel-eslint": "^10.1.0",
48-
"babel-jest": "^25.1.0",
49+
"babel-jest": "^26.6.3",
4950
"coveralls": "^3.0.9",
5051
"enzyme": "^3.11.0",
51-
"enzyme-adapter-react-16": "^1.15.2",
52-
"eslint": "^6.8.0",
53-
"eslint-config-airbnb": "^18.1.0",
54-
"eslint-plugin-import": "^2.20.1",
55-
"eslint-plugin-jsx-a11y": "^6.2.3",
56-
"eslint-plugin-react": "^7.19.0",
57-
"eslint-plugin-react-hooks": "^2.5.0",
58-
"husky": "^4.2.1",
59-
"jest": "^25.1.0",
60-
"js-yaml": "^3.13.1",
52+
"eslint": "^7.16.0",
53+
"eslint-config-airbnb": "^18.2.1",
54+
"eslint-plugin-import": "^2.22.1",
55+
"eslint-plugin-jsx-a11y": "^6.4.1",
56+
"eslint-plugin-react": "^7.21.5",
57+
"eslint-plugin-react-hooks": "^4.2.0",
58+
"husky": "^4.3.6",
59+
"jest": "^26.6.3",
60+
"js-yaml": "^3.14.1",
6161
"prop-types": "^15.7.2",
62-
"react": "16.13.0",
63-
"react-dom": "16.13.0",
62+
"react": "17.0.1",
63+
"react-dom": "17.0.1",
6464
"react-router": "^5.1.2",
65-
"rollup": "^2.1.0",
65+
"rollup": "^2.35.1",
6666
"rollup-plugin-babel": "^4.4.0",
67-
"rollup-plugin-typescript2": "^0.27.1",
68-
"rollup-plugin-uglify": "^6.0.2",
69-
"typescript": "^3.8.3"
70-
},
71-
"resolutions": {
72-
"@types/react": "^16.9.23"
67+
"rollup-plugin-terser": "^7.0.2",
68+
"rollup-plugin-typescript2": "^0.29.0",
69+
"typescript": "^4.1.3"
7370
},
7471
"keywords": [
7572
"react",

rollup.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import commonjs from '@rollup/plugin-commonjs';
33
import resolve from '@rollup/plugin-node-resolve';
44
import typescript from 'rollup-plugin-typescript2';
55
import ts from 'typescript';
6-
import { uglify } from 'rollup-plugin-uglify';
6+
import { terser } from 'rollup-plugin-terser';
77

88
const pkg = require('./package.json');
99

@@ -32,8 +32,8 @@ const plugins = [
3232
];
3333

3434
const formats = [
35-
{ format: 'cjs', file: pkg.main, plugins: plugins.concat([commonjs(), uglify()]) },
36-
{ format: 'umd', file: pkg.umd, plugins: plugins.concat([commonjs(), uglify()]) },
35+
{ format: 'cjs', file: pkg.main, plugins: plugins.concat([commonjs(), terser()]) },
36+
{ format: 'umd', file: pkg.umd, plugins: plugins.concat([commonjs(), terser()]) },
3737
{ format: 'es', file: pkg.module, plugins },
3838
];
3939

0 commit comments

Comments
 (0)