If you're fed up with configuring a set of specs every time you create a front-end project, e.g: eslint,prettier or commitlint. Maybe you can try to use Octo.
npm install octo-minions -D
Husky will auto deploy when you run octo-init
, and octo will help you auto register some git-hooks, e.g pre-commit, commit-msg.
commitlint.config.js
module.exports = require("octo/commitlint");
.lintstagedrc.js
module.exports = require("octo/lintstagedrc");
.prettierrc.js
module.exports = require("octo/prettier");
.eslintrc.js
module.exports = {
extends: ["./node_modules/octo/eslint.js"],
};
{
"extends": "./node_modules/octo/shared-tsconfig.json"
}
- Git Hooks - Husky
- Commit-Msg Hooks - commitlint
- Pre-commit Hooks - lint-staged
- code formatter - prettier
- Tool for identifying and reporting on patterns found in ECMAScript/JavaScript code - eslint
- Strongly typed programming language - TypeScript
MIT