@dext7r/linter
v1.1.1
Published
lint工具包
Downloads
63
Readme
@dext7r/linter
This package integrates ESLint, Prettier, CommitLint, Commitizen, Husky, lint-staged, and TypeScript, and provides a unified solution for linting your code. Simply install the package and run the initialization command, and the necessary configuration files will be generated for you.
Installation
To install @dext7r/linter, run the following command:
npm i @dext7r/linter -D -E
Configuration
To initialize the package, run the following command:
npx dext7r-lint
This will generate the necessary configuration files for your project, including:
.eslintrc.js
.prettierrc
.commitlintrc.js
.huskyrc.js
.lintstagedrc.js
tsconfig.json
Usage
Once you have installed and configured the package, the linter will run automatically when you build your project. You can also run the linter manually using the following command:
npm run lint
Conclusion
By using @easyv/linter, you can ensure that your code is properly linted and formatted, and that your commits adhere to a consistent standard. Our package includes all the necessary tools to keep your code clean and organized, and our initialization command makes it easy to get started. Try it out today!