Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

工程化各个工具的作用 #2

Open
JsweetA opened this issue Oct 8, 2023 · 1 comment
Open

工程化各个工具的作用 #2

JsweetA opened this issue Oct 8, 2023 · 1 comment

Comments

@JsweetA
Copy link
Owner

JsweetA commented Oct 8, 2023

No description provided.

@JsweetA
Copy link
Owner Author

JsweetA commented Oct 8, 2023

  • eslint:用于检查代码规范,不规范则进行报错,可自行配置添加规则
  • prettier:用于格式化代码,建立统一的代码风格
  • onchange:用于辅助prettier,从而实现自动格式化代码的功能,也就是Alt + Shift + F
  • husky:用于创建git hooks,比如创建一个pre-commit hook,在提交代码前利用hook进行检查代码规范,若不符合则直接终止
  • lint-staged:仅对变更的文件执行相关操作,也就是针对变更文件执行eslint检查
  • commitlint:检测commit格式

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant