Skip to content

Commit f5ed4a4

Browse files
authored
Merge pull request #133 from provectus/chore/update_react
[CHORE] Update dependencies. Clean linter warnings
2 parents d810db1 + 376c25a commit f5ed4a4

File tree

10 files changed

+8400
-3789
lines changed

10 files changed

+8400
-3789
lines changed

kafka-ui-react-app/.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,6 @@ yarn-error.log*
2626
.idea
2727

2828
# generated sources
29-
src/generated-sources
29+
src/generated-sources
30+
31+
.eslintcache

kafka-ui-react-app/.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v12.13.1

kafka-ui-react-app/package-lock.json

Lines changed: 8350 additions & 3750 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

kafka-ui-react-app/package.json

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,25 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6-
"@types/react-datepicker": "^3.0.2",
6+
"@types/react-datepicker": "^3.1.1",
77
"@types/uuid": "^8.3.0",
8-
"bulma": "^0.8.0",
8+
"bulma": "^0.8.2",
99
"bulma-switch": "^2.0.0",
1010
"classnames": "^2.2.6",
11-
"date-fns": "^2.14.0",
11+
"date-fns": "^2.16.1",
12+
"eslint-import-resolver-node": "^0.3.4",
1213
"eslint-import-resolver-typescript": "^2.3.0",
1314
"immer": "^6.0.5",
14-
"lodash": "^4.17.15",
15+
"lodash": "^4.17.20",
1516
"pretty-ms": "^6.0.1",
16-
"react": "^16.12.0",
17-
"react-datepicker": "^3.0.0",
18-
"react-dom": "^16.12.0",
19-
"react-hook-form": "^4.5.5",
17+
"react": "^17.0.1",
18+
"react-datepicker": "^3.3.0",
19+
"react-dom": "^17.0.1",
20+
"react-hook-form": "^4.10.2",
2021
"react-json-tree": "^0.13.0",
21-
"react-multi-select-component": "^2.0.12",
22-
"react-redux": "^7.1.3",
23-
"react-router-dom": "^5.1.2",
22+
"react-multi-select-component": "^2.0.14",
23+
"react-redux": "^7.2.2",
24+
"react-router-dom": "^5.2.0",
2425
"redux": "^4.0.5",
2526
"redux-thunk": "^2.3.0",
2627
"reselect": "^4.0.0",
@@ -66,22 +67,22 @@
6667
},
6768
"devDependencies": {
6869
"@testing-library/jest-dom": "^4.2.4",
69-
"@testing-library/react": "^9.3.2",
70+
"@testing-library/react": "^9.5.0",
7071
"@testing-library/user-event": "^7.1.2",
71-
"@types/classnames": "^2.2.9",
72-
"@types/jest": "^24.0.25",
73-
"@types/lodash": "^4.14.149",
74-
"@types/node": "^12.12.24",
75-
"@types/react": "^16.9.17",
76-
"@types/react-dom": "^16.9.0",
77-
"@types/react-redux": "^7.1.5",
78-
"@types/react-router-dom": "^5.1.3",
72+
"@types/classnames": "^2.2.11",
73+
"@types/jest": "^24.9.1",
74+
"@types/lodash": "^4.14.165",
75+
"@types/node": "^12.19.8",
76+
"@types/react": "^17.0.0",
77+
"@types/react-dom": "^17.0.0",
78+
"@types/react-redux": "^7.1.11",
79+
"@types/react-router-dom": "^5.1.6",
7980
"@types/redux": "^3.6.0",
8081
"@types/redux-thunk": "^2.1.0",
81-
"@typescript-eslint/eslint-plugin": "^4.8.2",
82-
"@typescript-eslint/parser": "^4.8.2",
82+
"@typescript-eslint/eslint-plugin": "^4.9.0",
83+
"@typescript-eslint/parser": "^4.9.0",
8384
"dotenv": "^8.2.0",
84-
"eslint": "^6.8.0",
85+
"eslint": "^7.14.0",
8586
"eslint-config-airbnb": "^18.2.1",
8687
"eslint-config-airbnb-typescript": "^12.0.0",
8788
"eslint-config-prettier": "^6.15.0",
@@ -93,11 +94,11 @@
9394
"esprint": "^0.6.0",
9495
"husky": "^4.3.0",
9596
"json-server": "^0.15.1",
96-
"lint-staged": "^10.5.1",
97-
"node-sass": "^4.13.1",
98-
"prettier": "^2.1.2",
99-
"react-scripts": "3.4.4",
100-
"typescript": "~3.7.4"
97+
"lint-staged": "^10.5.2",
98+
"node-sass": "^4.14.1",
99+
"prettier": "^2.2.1",
100+
"react-scripts": "4.0.1",
101+
"typescript": "~4.1.2"
101102
},
102103
"proxy": "http://localhost:8080"
103104
}

kafka-ui-react-app/src/components/Topics/shared/Form/CustomParams/CustomParamSelect.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ const CustomParamSelect: React.FC<Props> = ({
3737
return valid || 'Custom Parameter must be unique';
3838
};
3939

40-
const onChange = (inputName: string) => (event: any) => {
40+
const onChange = (inputName: string) => (
41+
event: React.ChangeEvent<HTMLSelectElement>
42+
) => {
4143
triggerValidation(inputName);
4244
onNameChange(index, event.target.value);
4345
};

kafka-ui-react-app/src/components/Topics/shared/Form/CustomParams/CustomParams.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ const CustomParams: React.FC<Props> = ({ isSubmitting, config }) => {
3535
)
3636
: {};
3737

38-
const [formCustomParams, setFormCustomParams] = React.useState<
39-
TopicFormCustomParams
40-
>({
38+
const [
39+
formCustomParams,
40+
setFormCustomParams,
41+
] = React.useState<TopicFormCustomParams>({
4142
byIndex,
4243
allIndexes: Object.keys(byIndex),
4344
});

kafka-ui-react-app/src/lib/hooks/useInterval.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22

3-
type Callback = () => any;
3+
type Callback = () => void;
44

55
const useInterval = (callback: Callback, delay: number) => {
66
const savedCallback = React.useRef<Callback>();
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"jsx": "react-jsxdev"
5+
}
6+
}

kafka-ui-react-app/tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
"resolveJsonModule": true,
1818
"isolatedModules": true,
1919
"noEmit": true,
20-
"jsx": "react",
21-
"baseUrl": "src"
20+
"jsx": "react-jsx",
21+
"baseUrl": "src",
22+
"noFallthroughCasesInSwitch": true
2223
},
2324
"include": [
2425
"src"

package-lock.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)