JSPM

do-lint

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q21011F
  • License MIT

快速初始化前端项目的代码质量工具,一键配置 ESLint、Prettier、Husky 和 lint-staged

Package Exports

  • do-lint
  • do-lint/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (do-lint) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

do-lint

npm version License: MIT

一键配置前端项目代码质量工具,支持 Vue、React 和 Angular。

功能

  • 一键配置 ESLint、Prettier、Husky 和 lint-staged
  • 支持 Vue、React、Angular (TypeScript/JavaScript)
  • 自动格式化代码,提交前检查

安装

npm install -g do-lint

使用

方式一:交互式

do-lint init

方式二:命令行

do-lint init -t vue-ts     # Vue + TypeScript
do-lint init -t react-js   # React + JavaScript
do-lint init -t angular-ts # Angular + TypeScript

支持的项目类型:

  • vue-ts / vue-js
  • react-ts / react-js
  • angular-ts / angular-js

配置说明

初始化后会生成以下配置文件:

├── .eslintrc.js           # 代码检查
├── .prettierrc.js         # 代码格式化
├── .lintstagedrc.js       # Git 提交前检查
└── .husky/                # Git hooks

License

MIT