Browse Source

chore: add commitlint and husky and lint-staged

pull/11356/head
afc163 1 year ago
parent
commit
ec18c0cb83
  1. 1
      .commitlintrc.js
  2. 1
      .husky/pre-commit
  3. 3
      .lintstagedrc
  4. 1
      commitlint.config.js
  5. 4
      package.json

1
.commitlintrc.js

@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] };

1
.husky/pre-commit

@ -0,0 +1 @@
lint-staged

3
.lintstagedrc

@ -0,0 +1,3 @@
{
"*": "prettier --ignore-unknown --write"
}

1
commitlint.config.js

@ -1 +0,0 @@
export default { extends: ['@commitlint/config-conventional'] };

4
package.json

@ -79,9 +79,9 @@
"husky": "^9.1.6",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^10.5.4",
"lint-staged": "^15.2.10",
"mockjs": "^1.1.0",
"prettier": "^2.8.8",
"prettier": "^3.3.3",
"react-dev-inspector": "^1.9.0",
"swagger-ui-dist": "^4.19.1",
"ts-node": "^10.9.2",

Loading…
Cancel
Save