mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2024-11-27 08:39:59 +08:00
44 lines
1.1 KiB
JSON
44 lines
1.1 KiB
JSON
{
|
|
"name": "root",
|
|
"private": true,
|
|
"scripts": {
|
|
"lerna": "lerna",
|
|
"prepublish": "lerna run prepublish",
|
|
"test:ci": "jest -c config/jest.ci.config.js",
|
|
"lint": "eslint packages --ext .ts --ext .tsx",
|
|
"fix-lint": "eslint --fix packages --ext .ts --ext .tsx",
|
|
"release": "lerna publish",
|
|
"release:canary": "branch=$(git rev-parse --abbrev-ref HEAD); lerna publish --canary --preid $branch"
|
|
},
|
|
"devDependencies": {
|
|
"@typescript-eslint/eslint-plugin": "^4.31.1",
|
|
"@typescript-eslint/parser": "^4.31.1",
|
|
"eslint": "^7.32.0",
|
|
"eslint-config-prettier": "^8.3.0",
|
|
"eslint-config-standard": "^16.0.3",
|
|
"eslint-plugin-import": "^2.25.4",
|
|
"eslint-plugin-node": "^11.1.0",
|
|
"eslint-plugin-promise": "^6.0.0",
|
|
"eslint-plugin-react": "^7.25.1",
|
|
"husky": "^6.0.0",
|
|
"lerna": "^4.0.0",
|
|
"lint-staged": "^11.0.0",
|
|
"prettier": "^2.3.2"
|
|
},
|
|
"workspaces": [
|
|
"packages/*"
|
|
],
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"*.{ts,tsx,html}": [
|
|
"prettier --write",
|
|
"eslint --fix",
|
|
"git add"
|
|
]
|
|
}
|
|
}
|