Skip to content

Commit f8062dd

Browse files
committed
update dev deps and some tweaks
1 parent 00034d8 commit f8062dd

File tree

7 files changed

+1739
-1760
lines changed

7 files changed

+1739
-1760
lines changed

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"react-hooks/rules-of-hooks": "error",
2323
"react-hooks/exhaustive-deps": ["error", { "additionalHooks": "useIsomorphicLayoutEffect" }],
2424
"@typescript-eslint/explicit-function-return-type": "off",
25+
"@typescript-eslint/explicit-module-boundary-types": "off",
2526
"@typescript-eslint/no-empty-interface": "off",
2627
"react/jsx-filename-extension": ["error", { "extensions": [".js", ".tsx"] }],
2728
"react/prop-types": "off",

__tests__/10_deep_proxy_spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ describe('keys spec', () => {
162162
});
163163
});
164164

165-
166165
describe('special objects spec', () => {
167166
it('object with cycles', () => {
168167
const proxyCache = new WeakMap();

examples/02_typescript/src/state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
1+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
22
// @ts-ignore
33
import { Dispatch } from 'reactive-react-redux';
44

examples/09_thunk/src/Person.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const Person = () => {
2626
const state = useTrackedState<State>();
2727
const dispatch = useDispatch<Action>();
2828
const setRandomFirstName = () => {
29-
const dispatchForThunk = dispatch as ThunkDispatch<State, {}, Action>;
29+
const dispatchForThunk = dispatch as ThunkDispatch<State, unknown, Action>;
3030
dispatchForThunk(async (d: Dispatch<Action>) => {
3131
d({ firstName: 'Loading...', type: 'setFirstName' });
3232
try {

package.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -46,35 +46,35 @@
4646
"license": "MIT",
4747
"dependencies": {},
4848
"devDependencies": {
49-
"@babel/cli": "^7.8.4",
50-
"@babel/core": "^7.9.6",
51-
"@babel/preset-env": "^7.9.6",
52-
"@babel/preset-react": "^7.9.4",
53-
"@testing-library/react": "^10.0.4",
54-
"@types/react": "^16.9.35",
49+
"@babel/cli": "^7.10.5",
50+
"@babel/core": "^7.11.0",
51+
"@babel/preset-env": "^7.11.0",
52+
"@babel/preset-react": "^7.10.4",
53+
"@testing-library/react": "^10.4.7",
54+
"@types/react": "^16.9.44",
5555
"@types/react-dom": "^16.9.8",
56-
"@types/redux-logger": "^3.0.7",
57-
"@typescript-eslint/eslint-plugin": "^2.31.0",
58-
"@typescript-eslint/parser": "^2.31.0",
56+
"@types/redux-logger": "^3.0.8",
57+
"@typescript-eslint/eslint-plugin": "^3.8.0",
58+
"@typescript-eslint/parser": "^3.8.0",
5959
"babel-loader": "^8.1.0",
60-
"eslint": "^7.0.0",
61-
"eslint-config-airbnb": "^18.1.0",
62-
"eslint-plugin-import": "^2.20.2",
63-
"eslint-plugin-jsx-a11y": "^6.2.3",
64-
"eslint-plugin-react": "^7.19.0",
65-
"eslint-plugin-react-hooks": "^4.0.0",
60+
"eslint": "^7.6.0",
61+
"eslint-config-airbnb": "^18.2.0",
62+
"eslint-plugin-import": "^2.22.0",
63+
"eslint-plugin-jsx-a11y": "^6.3.1",
64+
"eslint-plugin-react": "^7.20.5",
65+
"eslint-plugin-react-hooks": "^4.0.8",
6666
"html-webpack-plugin": "^4.3.0",
67-
"immer": "^6.0.5",
68-
"jest": "^26.0.1",
67+
"immer": "^7.0.7",
68+
"jest": "^26.2.2",
6969
"npm-run-all": "^4.1.5",
7070
"react": "experimental",
7171
"react-dom": "experimental",
7272
"redux": "^4.0.5",
7373
"redux-thunk": "^2.3.0",
74-
"ts-loader": "^7.0.3",
75-
"typescript": "^3.8.3",
76-
"webpack": "^4.43.0",
77-
"webpack-cli": "^3.3.11",
74+
"ts-loader": "^8.0.2",
75+
"typescript": "^3.9.7",
76+
"webpack": "^4.44.1",
77+
"webpack-cli": "^3.3.12",
7878
"webpack-dev-server": "^3.11.0"
7979
},
8080
"peerDependencies": {

src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Context, ComponentType } from 'react';
22
import { Store } from 'redux';
33

4-
type BaseState = {};
4+
type BaseState = Record<string, unknown>;
55

66
export interface RootState extends BaseState {}
77

0 commit comments

Comments
 (0)