diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100644 index 0000000..78f4d1d --- /dev/null +++ b/.husky/commit-msg @@ -0,0 +1 @@ +npm run commitlint ${1} diff --git a/package.json b/package.json index c346206..cc8fef5 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,8 @@ "test": "nyc --reporter=html --reporter=text ava ./test/*.test.ts -s && npm run test:rollup.config.spec.ts", "coverage": "nyc report --reporter=text-lcov | coveralls", "output-coverage-lcov": "nyc report --reporter=text-lcov > coverage/tests.lcov", - "test:rollup.config.spec.ts": "tsc --project tsconfig.spec.json --noEmit" + "test:rollup.config.spec.ts": "tsc --project tsconfig.spec.json --noEmit", + "commitlint": "commitlint --edit" }, "standard": { "ignore": [