Skip to content

Commit

Permalink
feat: format:check
Browse files Browse the repository at this point in the history
  • Loading branch information
lijialiang committed Aug 4, 2021
1 parent ac11f32 commit 6b1e892
Show file tree
Hide file tree
Showing 2 changed files with 1,014 additions and 18 deletions.
19 changes: 19 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
},
"homepage": "https://github.com/svga/SVGAPlayer-Web-Lite/#readme",
"scripts": {
"format:check": "eslint",
"test": "cross-env NODE_ENV=test rollup -c -w",
"clean": "rimraf dist",
"build:umd": "cross-env FORMAT=umd rollup -c",
Expand All @@ -36,6 +37,8 @@
"devDependencies": {
"@babel/core": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^19.0.0",
"@rollup/plugin-node-resolve": "^13.0.0",
Expand All @@ -49,6 +52,7 @@
"eslint-plugin-promise": "^4.2.1",
"fs-extra": "^10.0.0",
"glob": "^7.1.7",
"lint-staged": "^11.1.1",
"npm-run-all": "^4.1.5",
"protobufjs": "git+https://github.com/lijialiang/protobuf.js.git",
"rimraf": "^3.0.2",
Expand All @@ -61,6 +65,21 @@
"rollup-plugin-typescript2": "^0.30.0",
"tslib": "^2.3.0",
"typescript": "^4.3.5",
"yorkie": "^2.0.0",
"zlibjs": "git+https://github.com/lijialiang/zlib.js.git#esm"
},
"lint-staged": {
"./src/**/*.{js,ts}": [
"npm run format:check"
]
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"gitHooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -e $GIT_PARAMS"
}
}
Loading

0 comments on commit 6b1e892

Please sign in to comment.