Skip to content

Commit b86adcf

Browse files
committed
bump version, upgrade packages
1 parent aee95d0 commit b86adcf

File tree

8 files changed

+1428
-1512
lines changed

8 files changed

+1428
-1512
lines changed

.eslintrc.js

-27
This file was deleted.

.eslintrc.json

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"extends": [
4+
"eslint:recommended",
5+
"plugin:@typescript-eslint/recommended",
6+
"plugin:prettier/recommended",
7+
"plugin:react/recommended",
8+
"plugin:react-hooks/recommended"
9+
],
10+
"parserOptions": {
11+
"ecmaVersion": 2020,
12+
"sourceType": "module",
13+
"ecmaFeatures": {
14+
"jsx": true
15+
}
16+
},
17+
"settings": {
18+
"react": {
19+
"version": "detect"
20+
}
21+
},
22+
"rules": {
23+
"@typescript-eslint/explicit-function-return-type": "off",
24+
"@typescript-eslint/no-non-null-assertion": "off",
25+
"@typescript-eslint/explicit-module-boundary-types": "off"
26+
}
27+
}

.husky/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
yarn typecheck && yarn build && yarn test && lint-staged && git add .size-snapshot.json

babel.config.js

-10
This file was deleted.

babel.config.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"presets": [
3+
"@babel/preset-typescript",
4+
"@babel/preset-react",
5+
["@babel/preset-env", { "bugfixes": true, "loose": true }]
6+
],
7+
"plugins": [["@babel/transform-runtime"]]
8+
}

package.json

+26-30
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-popper-tooltip",
3-
"version": "4.1.0",
3+
"version": "4.1.1",
44
"description": "React tooltip library built around react-popper",
55
"author": "Mohsin Ul Haq <[email protected]>",
66
"license": "MIT",
@@ -35,7 +35,8 @@
3535
"start": "rollup -c -w",
3636
"test": "jest tests/",
3737
"storybook": "start-storybook -p 6006",
38-
"build-storybook": "build-storybook"
38+
"build-storybook": "build-storybook",
39+
"postinstall": "husky install"
3940
},
4041
"jest": {
4142
"modulePathIgnorePatterns": [
@@ -45,11 +46,6 @@
4546
"@testing-library/jest-dom/extend-expect"
4647
]
4748
},
48-
"husky": {
49-
"hooks": {
50-
"pre-commit": "yarn typecheck && yarn build && yarn test && lint-staged && git add .size-snapshot.json"
51-
}
52-
},
5349
"lint-staged": {
5450
"**/*.(ts|tsx)": [
5551
"prettier --write",
@@ -61,44 +57,44 @@
6157
"react-dom": ">=16.6.0"
6258
},
6359
"dependencies": {
64-
"@babel/runtime": "^7.12.5",
65-
"@popperjs/core": "^2.6.0",
60+
"@babel/runtime": "^7.13.2",
61+
"@popperjs/core": "^2.8.3",
6662
"react-popper": "^2.2.4"
6763
},
6864
"devDependencies": {
69-
"@babel/core": "^7.12.10",
70-
"@babel/plugin-transform-runtime": "^7.12.10",
71-
"@babel/preset-env": "^7.12.11",
72-
"@babel/preset-react": "^7.12.10",
73-
"@babel/preset-typescript": "^7.12.7",
74-
"@storybook/addon-actions": "^6.1.15",
75-
"@storybook/addon-essentials": "^6.1.15",
76-
"@storybook/addon-links": "^6.1.15",
77-
"@storybook/react": "^6.1.15",
65+
"@babel/core": "^7.13.1",
66+
"@babel/plugin-transform-runtime": "^7.13.2",
67+
"@babel/preset-env": "^7.13.0",
68+
"@babel/preset-react": "^7.12.13",
69+
"@babel/preset-typescript": "^7.13.0",
70+
"@storybook/addon-actions": "^6.1.19",
71+
"@storybook/addon-essentials": "^6.1.19",
72+
"@storybook/addon-links": "^6.1.19",
73+
"@storybook/react": "^6.1.19",
7874
"@testing-library/jest-dom": "^5.11.9",
79-
"@testing-library/react": "^11.2.3",
80-
"@testing-library/user-event": "^12.6.2",
75+
"@testing-library/react": "^11.2.5",
76+
"@testing-library/user-event": "^12.7.2",
8177
"@types/jest": "^26.0.20",
82-
"@types/react": "^17.0.0",
83-
"@types/react-dom": "^17.0.0",
84-
"@typescript-eslint/eslint-plugin": "^4.14.1",
85-
"@typescript-eslint/parser": "^4.14.1",
78+
"@types/react": "^17.0.2",
79+
"@types/react-dom": "^17.0.1",
80+
"@typescript-eslint/eslint-plugin": "^4.15.2",
81+
"@typescript-eslint/parser": "^4.15.2",
8682
"babel-loader": "^8.2.2",
87-
"eslint": "^7.18.0",
88-
"eslint-config-prettier": "^7.2.0",
83+
"eslint": "^7.20.0",
84+
"eslint-config-prettier": "^8.0.0",
8985
"eslint-plugin-prettier": "^3.3.1",
9086
"eslint-plugin-react": "^7.22.0",
9187
"eslint-plugin-react-hooks": "^4.2.0",
92-
"husky": "^4.3.8",
88+
"husky": "^5.1.1",
9389
"jest": "^26.6.3",
94-
"lint-staged": "^10.5.3",
90+
"lint-staged": "^10.5.4",
9591
"prettier": "^2.2.1",
9692
"react": "^17.0.1",
9793
"react-dom": "^17.0.1",
98-
"rollup": "^2.38.0",
94+
"rollup": "^2.39.1",
9995
"rollup-plugin-babel": "^4.4.0",
10096
"rollup-plugin-node-resolve": "^5.2.0",
10197
"rollup-plugin-size-snapshot": "^0.12.0",
102-
"typescript": "^4.1.3"
98+
"typescript": "^4.1.5"
10399
}
104100
}

0 commit comments

Comments
 (0)