Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Latest commit

 

History

History
45 lines (33 loc) · 2.15 KB

README-ZH.md

File metadata and controls

45 lines (33 loc) · 2.15 KB

👨‍💻 @sj-distributor/eslint-plugin-react

Npm Version MIT License downloads Ci

用于 react 的 ESLint 预置

安装

你首先需要安装 ESLint 和约定的第三方插件包:

yarn add eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-config-prettier eslint-plugin-import eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-simple-import-sort eslint-plugin-unicorn prettier typescript

接下来,安装 @sj-distributor/eslint-plugin-react:

yarn add @sj-distributor/eslint-plugin-react

使用

Add eslint-plugin-react to the extends section of your .eslintrc configuration file:

{
  "extends": ["plugin:@sj-distributor/react/recommended"]
}

使用了哪些规则?