telit-eslint
v1.1.8
Published
天立泰前端规范生成器,一键安装基于eslint所需的相关依赖
Downloads
21
Readme
天立泰前端规范格式化配置 CLI 设置工具
欢迎使用天立泰前端规范格式化配置 CLI 设置工具!这个工具旨在帮助开发者快速并且轻松地配置前端项目的 eslint 规范。
特点
- 一键安装必要的 lint 工具,如 ESLint、Husky、lint-staged 等。
- 自动生成必要的配置文件,例如
.editorconfig
,.commitlintrc.js
,.eslintrc.js
等。 - 在
package.json
中自动添加 lint 相关的命令。
安装
你可以使用 npm 来全局安装此工具:
npm install telit-eslint -g
使用
- 在你的项目根目录下运行此命令:
telit-eslint
工具将自动安装必要的依赖并设置相应的配置文件。
一切设置好后,您可以使用以下命令进行 lint 检查:
npm run lint
如果希望同时自动修复 lint 错误,可以使用:
npm run lint-fix
贡献
如果你发现任何问题或有任何改进建议,请联系我。