Skip to content

Commit 84fddba

Browse files
committed
style: eslint test
1 parent 99916c5 commit 84fddba

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

app/service/article.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default class ArticeService extends Service {
1010
constructor(ctx: Context) {
1111
super(ctx);
1212
this.context = ctx;
13-
this.colllection = new Colllection(ctx.db, 'article');
13+
this.colllection = new Colllection(ctx.db, 'article')
1414
}
1515

1616
public async getArtilceList(condition: Condition) {

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
"ii": "npm install --registry https://registry.npm.taobao.org",
1717
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
1818
},
19+
"husky": {
20+
"hooks": {
21+
"pre-commit": "lint-staged"
22+
}
23+
},
1924
"lint-staged": {
2025
"app/**/*.ts,tsx" : [
2126
"tslint .",

0 commit comments

Comments
 (0)