Skip to content

Commit 61b3926

Browse files
committed
dependency updates
1 parent 2737532 commit 61b3926

File tree

5 files changed

+856
-763
lines changed

5 files changed

+856
-763
lines changed

.eslintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"@typescript-eslint/explicit-function-return-type": 0,
2626
"@typescript-eslint/no-explicit-any": 0,
2727
"@typescript-eslint/no-unused-vars": ["error", { "ignoreRestSiblings": true }],
28-
"@typescript-eslint/camelcase": ["error", { "properties": "never" }],
28+
"@typescript-eslint/explicit-module-boundary-types": 0,
2929
"react-hooks/exhaustive-deps": "error",
3030
"react-hooks/rules-of-hooks": "error",
3131
"react/jsx-first-prop-new-line": 0,

.prettierrc

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@
55
"files": ["*.js", "*.jsx"],
66
"options": {
77
"singleQuote": true,
8-
"trailingComma": "all"
8+
"trailingComma": "all",
9+
"arrowParens": "avoid"
910
}
1011
},
1112
{
1213
"files": ["*.ts", "*.tsx"],
1314
"options": {
1415
"singleQuote": true,
15-
"trailingComma": "all"
16+
"trailingComma": "all",
17+
"arrowParens": "avoid"
1618
}
1719
},
1820
{

package.json

+22-22
Original file line numberDiff line numberDiff line change
@@ -55,36 +55,36 @@
5555
"@types/assert": "^1.4.6",
5656
"@types/classnames": "^2.2.10",
5757
"@types/jsonp": "^0.2.0",
58-
"@types/react": "^16.9.23",
59-
"@types/react-dom": "^16.9.5",
60-
"@typescript-eslint/eslint-plugin": "^2.23.0",
61-
"@typescript-eslint/parser": "^2.23.0",
58+
"@types/react": "^16.9.35",
59+
"@types/react-dom": "^16.9.8",
60+
"@typescript-eslint/eslint-plugin": "^3.1.0",
61+
"@typescript-eslint/parser": "^3.1.0",
6262
"cross-env": "7.0.2",
63-
"css-loader": "3.4.2",
64-
"eslint": "6.8.0",
65-
"eslint-config-prettier": "^6.10.0",
66-
"eslint-loader": "3.0.3",
63+
"css-loader": "3.5.3",
64+
"eslint": "7.2.0",
65+
"eslint-config-prettier": "^6.11.0",
66+
"eslint-loader": "4.0.2",
6767
"eslint-plugin-babel": "^5.3.0",
68-
"eslint-plugin-import": "2.20.1",
68+
"eslint-plugin-import": "2.20.2",
6969
"eslint-plugin-jsx-a11y": "6.2.3",
7070
"eslint-plugin-prettier": "^3.1.2",
71-
"eslint-plugin-react": "7.19.0",
72-
"eslint-plugin-react-hooks": "2.5.0",
73-
"file-loader": "5.1.0",
74-
"html-webpack-plugin": "3.2.0",
75-
"prettier": "^1.19.1",
76-
"react": "16.3.0",
77-
"react-dom": "16.3.0",
78-
"react-hot-loader": "4.12.20",
71+
"eslint-plugin-react": "7.20.0",
72+
"eslint-plugin-react-hooks": "4.0.4",
73+
"file-loader": "6.0.0",
74+
"html-webpack-plugin": "4.3.0",
75+
"prettier": "^2.0.5",
76+
"react": "16.8.0",
77+
"react-dom": "16.8.0",
78+
"react-hot-loader": "4.12.21",
7979
"rimraf": "^3.0.2",
80-
"style-loader": "1.1.3",
81-
"terser-webpack-plugin": "2.3.5",
80+
"style-loader": "1.2.1",
81+
"terser-webpack-plugin": "3.0.3",
8282
"ts-loader": "^6.2.1",
8383
"typescript": "3.8.3",
84-
"url-loader": "3.0.0",
85-
"webpack": "4.42.0",
84+
"url-loader": "4.1.0",
85+
"webpack": "4.43.0",
8686
"webpack-cli": "3.3.11",
87-
"webpack-dev-server": "3.10.3"
87+
"webpack-dev-server": "3.11.0"
8888
},
8989
"dependencies": {
9090
"classnames": "^2.2.5",

src/hocs/createShareButton.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { Ref, forwardRef } from 'react';
22

33
import ShareButton, { Props as ShareButtonProps } from '../ShareButton';
44

5-
function createShareButton<OptionProps extends {}, LinkOptions = OptionProps>(
5+
function createShareButton<OptionProps extends Record<string, any>, LinkOptions = OptionProps>(
66
networkName: string,
77
link: (url: string, options: LinkOptions) => string,
88
optsMap: (props: OptionProps) => LinkOptions,

0 commit comments

Comments
 (0)