Skip to content

Commit

Permalink
🔧 chore: 尝试添加 lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Apr 8, 2021
1 parent 121d731 commit f1d7008
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"check:circular": "dpdm packages/**/*.ts --warning false --tree false --exit-code circular:1 -T true",
"check:types": "tsc -p tsconfig-check.json",
"lint-eslint": "eslint --cache --ext .ts,.tsx --format=pretty ./packages",
"lint-staged": "lint-staged",
"lint-staged": "lint-staged && lerna run lint-staged",
"lint-staged:ts": "eslint --cache --ext .ts,.tsx --format=pretty",
"lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ",
"--------- ": "",
Expand Down
3 changes: 2 additions & 1 deletion packages/journey-map/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"test:update": "jest -u",
"prepublishOnly": "yarn build",
"cov": "jest --coverage",
"clean": "rm -rf es lib dist build coverage .umi"
"clean": "rm -rf es lib dist build coverage .umi",
"lint-staged": "lint-staged"
},
"lint-staged": {
"yml.ts": "yarn schema"
Expand Down
2 changes: 1 addition & 1 deletion packages/journey-map/src/types/yml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export interface YMLJourneyMap {
*/
title?: string;
/**
* 配置项
* 配置参数
*/
config?: Config;
/**
Expand Down

0 comments on commit f1d7008

Please sign in to comment.