Skip to content

Commit c2d651e

Browse files
committed
ci: add packages config
1 parent a61e7d3 commit c2d651e

File tree

1 file changed

+46
-14
lines changed

1 file changed

+46
-14
lines changed

package.json

Lines changed: 46 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"version": "0.1.0",
33
"license": "MIT",
44
"main": "dist/index.js",
5+
"description": "A react wrapper manager for MQTT",
56
"typings": "dist/index.d.ts",
67
"files": [
78
"dist",
@@ -10,12 +11,26 @@
1011
"engines": {
1112
"node": ">=10"
1213
},
14+
"browserslist": {
15+
"production": [
16+
">0.2%",
17+
"not dead",
18+
"not op_mini all"
19+
],
20+
"development": [
21+
"last 1 chrome version",
22+
"last 1 firefox version",
23+
"last 1 safari version"
24+
]
25+
},
1326
"scripts": {
1427
"dev": "tsdx watch",
1528
"build": "tsdx build",
1629
"test": "tsdx test --passWithNoTests",
17-
"lint": "tsdx lint",
18-
"prepare": "tsdx build",
30+
"lint": "eslint --fix",
31+
"fmt": "prettier --write src/**/*.{ts,tsx}",
32+
"fmt:check": "prettier --check src/**/*.{ts,tsx}",
33+
"prepare": "tsdx build && husky install",
1934
"size": "size-limit",
2035
"analyze": "size-limit --why",
2136
"storybook": "start-storybook -p 6006",
@@ -24,17 +39,6 @@
2439
"peerDependencies": {
2540
"react": ">=16"
2641
},
27-
"husky": {
28-
"hooks": {
29-
"pre-commit": "tsdx lint"
30-
}
31-
},
32-
"prettier": {
33-
"printWidth": 80,
34-
"semi": true,
35-
"singleQuote": true,
36-
"trailingComma": "es5"
37-
},
3842
"name": "react-mqtt-workflow-manager",
3943
"author": "wallace-sf",
4044
"module": "dist/react-mqtt-workflow-manager.esm.js",
@@ -58,14 +62,42 @@
5862
"@storybook/react": "^6.5.16",
5963
"@types/react": "^18.0.28",
6064
"@types/react-dom": "^18.0.11",
65+
"@typescript-eslint/eslint-plugin": "^5.54.0",
66+
"@typescript-eslint/parser": "^5.54.0",
6167
"babel-loader": "^9.1.2",
62-
"husky": "^8.0.3",
68+
"eslint": "^8.35.0",
69+
"eslint-config-prettier": "^8.6.0",
70+
"eslint-import-resolver-typescript": "^3.5.3",
71+
"eslint-plugin-import": "^2.25.2",
72+
"eslint-plugin-import-helpers": "^1.3.1",
73+
"eslint-plugin-prettier": "^4.2.1",
74+
"eslint-plugin-react": "^7.32.2",
75+
"eslint-plugin-react-hooks": "^4.6.0",
76+
"lint-staged": "^13.1.2",
77+
"prettier": "^2.8.4",
6378
"react": "^18.2.0",
6479
"react-dom": "^18.2.0",
6580
"react-is": "^18.2.0",
6681
"size-limit": "^8.2.4",
6782
"tsdx": "^0.14.1",
6883
"tslib": "^2.5.0",
6984
"typescript": "^4.9.5"
85+
},
86+
"dependencies": {
87+
"mqtt": "^4.3.7"
88+
},
89+
"lint-staged": {
90+
"src/**/*.{ts,tsx}": [
91+
"yarn lint",
92+
"yarn fmt"
93+
]
94+
},
95+
"settings": {
96+
"import/resolver": {
97+
"typescript": {
98+
"typescript": true,
99+
"node": true
100+
}
101+
}
70102
}
71103
}

0 commit comments

Comments
 (0)