@yzfe/lint-config

2.3.0 • Public • Published

伊智 eslint/stylelint 一键配置

一键配置项目代码检查功能,包括 eslint, stylelint, husky/lint-stage, vscode 保存自动格式化

安装

# 全局安装
yarn global add @yzfe/lint-config

使用

# 命令,默认包含 stylelint 配置,不需要 stylelint 可以使用 --no-style 参数
yz-lint init [ts|vue|vue3|react] [--no-style]

# 配置 ts 项目
yz-lint init ts

# 配置 ts 项目,不需要 stylelint
yz-lint init ts --no-style

# 配置 vue2
yz-lint init vue

# 配置 vue3
yz-lint init vue3

# 配置 react
yz-lint init react

Readme

Keywords

none

Package Sidebar

Install

npm i @yzfe/lint-config

Weekly Downloads

0

Version

2.3.0

License

MIT

Unpacked Size

25.4 kB

Total Files

27

Last publish

Collaborators

  • allenice
  • allenmo
  • vfasky