Skip to content

Commit

Permalink
test prttier
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohuoni committed Apr 12, 2019
1 parent 7153a23 commit ef138b3
Show file tree
Hide file tree
Showing 3 changed files with 342 additions and 18 deletions.
2 changes: 2 additions & 0 deletions kiwi-linter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@
"@types/fs-extra": "^5.0.4",
"@types/mocha": "^2.2.42",
"@types/node": "^7.0.43",
"check-prettier": "^1.0.1",
"lint-staged": "^8.1.5",
"vscode": "^1.1.6"
},
"dependencies": {
Expand Down
22 changes: 16 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,27 @@
"scripts": {
"watch": "cd kiwi-linter && npm run watch",
"publish-linter": "cd kiwi-linter && vsce publish",
"prettier": "node ./scripts/prettier.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/alibaba/kiwi.git"
"prettier": "node ./scripts/prettier.js",
"lint-staged": "lint-staged",
"lint:prettier": "check-prettier lint",
"lint": "npm run lint:prettier"
},

"husky": {
"hooks": {
"pre-commit": "node ./scripts/lint-prettier.js && git add"
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"**/src/*.{js,ts}": [
"node ./scripts/lint-prettier.js",
"git add"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/alibaba/kiwi.git"
},
"author": "linhuiw",
"license": "MIT",
"bugs": {
Expand Down
Loading

0 comments on commit ef138b3

Please sign in to comment.