Skip to content

Commit 5535e09

Browse files
authored
Chore/update dependencies (#13)
Update dependencies
1 parent fac640b commit 5535e09

File tree

119 files changed

+7485
-8733
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+7485
-8733
lines changed

.eslintrc.js

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,21 @@ module.exports = {
1010
tsconfigRootDir: __dirname,
1111
project: ["./tsconfig.json"],
1212
},
13-
plugins: ["@typescript-eslint", "import", "no-only-tests"],
14-
extends: [
15-
"eslint:recommended",
16-
"plugin:@typescript-eslint/eslint-recommended",
17-
"plugin:@typescript-eslint/recommended",
18-
"plugin:@typescript-eslint/recommended-requiring-type-checking",
19-
"plugin:react/recommended",
20-
"plugin:react-hooks/recommended",
21-
"prettier/@typescript-eslint",
22-
"prettier/react",
23-
"plugin:prettier/recommended",
24-
"plugin:@fintechstudios/chai-as-promised/recommended"
25-
],
13+
plugins: ["@typescript-eslint", "import", "no-only-tests", "react-hooks"],
14+
extends: ["plugin:@typescript-eslint/recommended", "plugin:react/recommended", "prettier"],
2615
settings: {
2716
react: {
2817
version: "detect",
2918
},
3019
},
3120
rules: {
32-
"@typescript-eslint/no-var-requires": "off",
33-
"@typescript-eslint/no-explicit-any": "off",
3421
"@typescript-eslint/explicit-function-return-type": "off",
35-
"react/prop-types": "off",
36-
"@typescript-eslint/no-unused-vars": "error",
22+
"@typescript-eslint/explicit-member-accessibility": "off",
23+
"@typescript-eslint/explicit-module-boundary-types": "off",
24+
"@typescript-eslint/no-explicit-any": "off",
25+
"@typescript-eslint/no-unused-vars": ["error"],
26+
"@typescript-eslint/no-var-requires": "off",
27+
"eqeqeq": ["error", "always"],
3728
"import/order": ["error", {
3829
"alphabetize": {
3930
order: "asc",
@@ -42,8 +33,9 @@ module.exports = {
4233
"newlines-between": "always",
4334
"groups": ["builtin", "external", "parent", "sibling", "index"],
4435
}],
45-
"eqeqeq": ["error", "always"],
46-
"react-hooks/exhaustive-deps": "error",
4736
"no-only-tests/no-only-tests": "error",
48-
},
37+
"react/prop-types": "off",
38+
"react-hooks/rules-of-hooks": "error",
39+
"react-hooks/exhaustive-deps": "warn",
40+
},
4941
};

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
- name: Initialize
99
uses: actions/setup-node@v1
1010
with:
11-
node-version: 12
11+
node-version: 16
1212
- name: Install Dependencies
1313
run: yarn
1414
- name: Lint

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ jobs:
2020
- name: Install Node.js, NPM, and Yarn
2121
uses: actions/setup-node@main
2222
with:
23-
node-version: 12
23+
node-version: 16
2424

2525
- name: Install deps and compile app
2626
env:
2727
ELECTRON_WEBPACK_APP_AMPLITUDE_API_KEY: ${{ secrets.AMPLITUDE_API_KEY }}
2828
run: |
29-
yarn --link-duplicates
29+
yarn --link-duplicates --production=false
3030
yarn compile-prod
3131
3232
- name: Build artifact and release

.huskyrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"hooks": {
2+
"pre-commit": "lint-staged"
3+
}

.mocharc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = {
33
"ts-node/register",
44
"jsdom-global/register",
55
"./scripts/mock-css-modules.js",
6-
"./scripts/adapt-enzyme-to-react-16.js",
6+
"./scripts/adapt-enzyme-to-react-17.js",
77
"./scripts/chai-setup.js",
88
],
99
};

electron-webpack.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"renderer": {
33
"webpackConfig": "webpack/webpack.renderer.additions.js"
44
},
5-
"whiteListedModules": ["react-table", "react-beautiful-dnd"]
5+
"whiteListedModules": ["@ant-design/icons", "react-table", "react-beautiful-dnd"]
66
}

package.json

Lines changed: 95 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
22
"name": "file-upload-app",
3+
"engines": {
4+
"node": "16.x",
5+
"npm": "8.x"
6+
},
37
"version": "2.7.0",
48
"build": {
59
"appId": "org.aics.alleninstitute.fileupload",
@@ -27,10 +31,11 @@
2731
"compile-prod": "cross-env ELECTRON_WEBPACK_APP_LIMS_HOST=\"aics.corp.alleninstitute.org\" ELECTRON_WEBPACK_APP_LIMS_PORT=80 NODE_ENV=production yarn compile",
2832
"build-executable": "yarn compile && yarn electron-builder",
2933
"dist": "electron-builder -p always",
30-
"test": "cross-env TS_NODE_PROJECT=tsconfig.commonjs.json TS_NODE_FILES=true NODE_ENV=production mocha src/**/test/*.{ts,tsx}",
34+
"test": "cross-env TS_NODE_PROJECT=tsconfig.commonjs.json TS_NODE_FILES=true NODE_ENV=production mocha --exit src/**/test/*.{ts,tsx}",
3135
"postinstall": "electron-builder install-app-deps",
3236
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
33-
"madge": "madge --warning --circular --ts-config tsconfig.base.json --webpack-config webpack/webpack.render.additions.js --extensions js,jsx,ts,tsx src/"
37+
"madge": "madge --warning --circular --ts-config tsconfig.base.json --webpack-config webpack/webpack.render.additions.js --extensions js,jsx,ts,tsx src/",
38+
"prepare": "husky install"
3439
},
3540
"repository": {
3641
"type": "git",
@@ -41,115 +46,99 @@
4146
"react",
4247
"aics"
4348
],
44-
"resolutions": {
45-
"@types/react": "16.9.2"
46-
},
4749
"author": "Lisa Harrylock",
4850
"license": "ISC",
4951
"dependencies": {
50-
"@aics/aics-react-labkey": "^4.6.3",
51-
"@aics/frontend-insights": "0.2.3",
52-
"@aics/frontend-insights-plugin-amplitude-node": "0.2.3",
53-
"@ant-design/icons": "~1.1.0",
54-
"@types/react-beautiful-dnd": "13.1.1",
55-
"@types/react-virtualized-auto-sizer": "^1.0.0",
56-
"@types/react-window": "^1.8.3",
57-
"antd": "3.26.0",
58-
"axios": "0.24.0",
59-
"axios-retry": "^3.2.4",
60-
"chai-as-promised": "7.1.1",
61-
"core-js": "2.6.5",
62-
"electron-devtools-installer": "^3.1.1",
63-
"electron-store": "5.2.0",
64-
"electron-updater": "4.2.2",
65-
"humps": "2.0.1",
66-
"js-logger": "1.6.0",
67-
"jsdom": "14.0.0",
68-
"jsdom-global": "3.0.2",
69-
"lodash": "4.17.20",
70-
"moment": "2.24.0",
71-
"object-hash": "2.0.3",
72-
"react": "16.9.0",
73-
"react-beautiful-dnd": "13.1.0",
74-
"react-dom": "16.9.0",
75-
"react-table": "^7.6.3",
76-
"react-virtualized-auto-sizer": "^1.0.5",
77-
"react-window": "^1.8.6",
78-
"redux-undo": "1.0.0-beta9-9-7",
79-
"reselect": "4.0.0",
80-
"rimraf": "^3.0.2",
81-
"rxjs": "6.5.4",
82-
"source-map-support": "0.5.11",
83-
"ts-import-plugin": "1.5.5",
84-
"ts-node": "9.0.0",
85-
"uuid": "^8.3.0"
52+
"@aics/aics-react-labkey": "~4.6.3",
53+
"@aics/frontend-insights": "~0.2.3",
54+
"@aics/frontend-insights-plugin-amplitude-node": "~0.2.3",
55+
"@ant-design/icons": "~4.7.0",
56+
"@types/react-beautiful-dnd": "~13.1.2",
57+
"@types/react-virtualized-auto-sizer": "~1.0.0",
58+
"@types/react-window": "~1.8.3",
59+
"antd": "~4.18.3",
60+
"axios": "~0.24.0",
61+
"axios-retry": "~3.2.4",
62+
"chai-as-promised": "~7.1.1",
63+
"electron-devtools-installer": "~3.2.0",
64+
"electron-store": "~8.0.1",
65+
"electron-updater": "~4.6.1",
66+
"humps": "~2.0.1",
67+
"jsdom": "~19.0.0",
68+
"jsdom-global": "~3.0.2",
69+
"lodash": "~4.17.21",
70+
"moment": "~2.29.1",
71+
"object-hash": "~2.2.0",
72+
"react": "~17.0.2",
73+
"react-beautiful-dnd": "~13.1.0",
74+
"react-dom": "~17.0.2",
75+
"react-table": "~7.7.0",
76+
"react-virtualized-auto-sizer": "~1.0.5",
77+
"react-window": "~1.8.6",
78+
"redux-undo": "~1.0.1",
79+
"reselect": "~4.1.5",
80+
"rimraf": "~3.0.2",
81+
"source-map-support": "~0.5.21",
82+
"ts-import-plugin": "~2.0.0",
83+
"ts-node": "~10.4.0",
84+
"uuid": "~8.3.0"
8685
},
8786
"devDependencies": {
88-
"@fintechstudios/eslint-plugin-chai-as-promised": "^3.1.0",
89-
"@types/chai": "4.1.7",
90-
"@types/chai-as-promised": "7.1.2",
91-
"@types/classnames": "2.2.7",
92-
"@types/electron-devtools-installer": "2.2.0",
93-
"@types/electron-json-storage": "4.0.0",
94-
"@types/enzyme": "3.9.0",
95-
"@types/humps": "1.1.2",
96-
"@types/jsdom": "12.2.3",
97-
"@types/lodash": "4.14.123",
98-
"@types/mocha": "8.0.4",
99-
"@types/node": "12.12.47",
100-
"@types/object-hash": "1.3.3",
101-
"@types/react": "16.9.2",
102-
"@types/react-dom": "16.9.0",
103-
"@types/react-redux": "7.1.18",
104-
"@types/react-table": "^7.0.29",
105-
"@types/rimraf": "^3.0.0",
106-
"@types/semver": "6.0.0",
107-
"@types/sinon": "^9.0.5",
108-
"@types/sinon-chai": "^3.2.4",
109-
"@types/uuid": "^8.3.0",
110-
"@typescript-eslint/eslint-plugin": "2.32.0",
111-
"@typescript-eslint/parser": "2.32.0",
112-
"chai": "4.2.0",
113-
"classnames": "2.2.6",
114-
"cross-env": "5.2.0",
115-
"css-loader": "2.1.1",
116-
"electron": "10.1.5",
117-
"electron-builder": "22.9.1",
118-
"electron-webpack": "2.6.2",
119-
"electron-webpack-ts": "3.1.1",
120-
"enzyme": "3.9.0",
121-
"enzyme-adapter-react-16": "1.11.2",
122-
"eslint": "7.6.0",
123-
"eslint-config-prettier": "6.11.0",
124-
"eslint-plugin-import": "2.20.2",
125-
"eslint-plugin-no-only-tests": "2.4.0",
126-
"eslint-plugin-prettier": "3.1.3",
127-
"eslint-plugin-react": "7.19.0",
128-
"eslint-plugin-react-hooks": "4.0.0",
129-
"husky": ">=4",
130-
"less": "3.9.0",
131-
"less-loader": "4.1.0",
132-
"lint-staged": ">=10",
133-
"madge": "^3.9.2",
134-
"mocha": "8.2.1",
135-
"mock-css-modules": "2.0.0",
136-
"postcss-import": "12.0.1",
137-
"postcss-loader": "3.0.0",
138-
"postcss-preset-env": "6.6.0",
139-
"prettier": "2.0.5",
140-
"react-redux": "7.2.4",
141-
"redux": "4.1.0",
142-
"redux-logic": "2.1.1",
143-
"sinon": "^9.0.3",
144-
"sinon-chai": "^3.5.0",
145-
"style-loader": "0.23.1",
146-
"typescript": "3.7.2",
147-
"webpack": "4.28.4"
148-
},
149-
"husky": {
150-
"hooks": {
151-
"pre-commit": "lint-staged"
152-
}
87+
"@types/chai": "~4.3.0",
88+
"@types/chai-as-promised": "~7.1.4",
89+
"@types/enzyme": "~3.10.11",
90+
"@types/humps": "~2.0.1",
91+
"@types/jsdom": "~16.2.14",
92+
"@types/lodash": "~4.14.178",
93+
"@types/mocha": "~9.0.0",
94+
"@types/node": "~17.0.8",
95+
"@types/object-hash": "~2.2.1",
96+
"@types/react": "~17.0.38",
97+
"@types/react-dom": "~17.0.11",
98+
"@types/react-redux": "~7.1.21",
99+
"@types/react-table": "~7.7.9",
100+
"@types/rimraf": "~3.0.0",
101+
"@types/semver": "~7.3.9",
102+
"@types/sinon": "~10.0.6",
103+
"@types/sinon-chai": "~3.2.8",
104+
"@types/uuid": "~8.3.0",
105+
"@typescript-eslint/eslint-plugin": "~5.9.0",
106+
"@typescript-eslint/parser": "~5.9.0",
107+
"@wojtekmaj/enzyme-adapter-react-17": "~0.6.6",
108+
"chai": "~4.3.4",
109+
"classnames": "~2.3.1",
110+
"cross-env": "~7.0.3",
111+
"css-loader": "~5.2.7",
112+
"electron": "~16.0.6",
113+
"electron-builder": "~22.14.5",
114+
"electron-webpack": "~2.8.2",
115+
"electron-webpack-ts": "~4.0.1",
116+
"enzyme": "~3.11.0",
117+
"eslint": "~8.6.0",
118+
"eslint-config-prettier": "~8.3.0",
119+
"eslint-plugin-import": "~2.25.4",
120+
"eslint-plugin-no-only-tests": "~2.6.0",
121+
"eslint-plugin-prettier": "~4.0.0",
122+
"eslint-plugin-react": "~7.28.0",
123+
"eslint-plugin-react-hooks": "~4.3.0",
124+
"husky": "~7.0.4",
125+
"less": "~4.1.2",
126+
"less-loader": "~7.3.0",
127+
"lint-staged": "~12.1.7",
128+
"madge": "~5.0.1",
129+
"mocha": "~9.1.3",
130+
"mock-css-modules": "~2.0.0",
131+
"postcss-import": "~14.0.2",
132+
"postcss-loader": "~4.2.0",
133+
"postcss-preset-env": "~7.2.0",
134+
"prettier": "~2.5.1",
135+
"react-redux": "~7.2.6",
136+
"redux": "~4.1.2",
137+
"redux-logic": "~3.0.3",
138+
"sinon": "~12.0.1",
139+
"sinon-chai": "~3.7.0",
140+
"typescript": "~4.5.4",
141+
"webpack": "~4.46.0"
153142
},
154143
"lint-staged": {
155144
"*.{ts,tsx,js,jsx}": "eslint --cache --fix"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is intended to be `required` by mocha in order to test React components */
2+
const Adapter = require("@wojtekmaj/enzyme-adapter-react-17");
23
const enzyme = require("enzyme");
3-
const Adapter = require("enzyme-adapter-react-16");
44

55
enzyme.configure({ adapter: new Adapter() });

0 commit comments

Comments
 (0)