Skip to content

Commit

Permalink
docs: improve setup guide in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Rel1cx committed Sep 12, 2024
1 parent 7d0b5e2 commit ba92e76
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 102 deletions.
45 changes: 0 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ pnpm add --save-dev @eslint-react/eslint-plugin

### Flat Config

Add the plugin to your `eslint.config.js`:

```js
// @ts-check

Expand All @@ -97,29 +95,6 @@ export default [
];
```

### Legacy Config

<details>
<summary>Click to toggle contents</summary>

Add the plugin to your `.eslintrc.json`:

```json
{
"parser": "@typescript-eslint/parser",
"plugins": ["@eslint-react/eslint-plugin"],
"extends": ["eslint:recommended"],
"overrides": [
{
"files": ["**/*.{ts,tsx}"],
"extends": [
"plugin:@eslint-react/recommended-legacy"
]
}
]
}
```

[Full Installation Guide ↗](https://eslint-react.xyz/docs/installation)

</details>
Expand All @@ -141,26 +116,6 @@ Add the plugin to your `.eslintrc.json`:
Enable rules that are recommended by ESLint React with additional rules that require type information.\
_This preset includes the `recommended` preset._

### Legacy Config

<details>
<summary>Click to toggle contents</summary>

- **core-legacy**\
Enable rules that are renderer-agnostic.
- **dom-legacy**\
Enable rules that are specific to React DOM.
- **web-api-legacy**\
Enable rules for interacting with Web APIs.
- **recommended-legacy**\
Enable rules that are recommended by ESLint React.\
_This preset includes the `core-legacy`, `dom-legacy`, and `web-api-legacy` presets._
- **recommended-type-checked-legacy**\
Enable rules that are recommended by ESLint React with additional rules that require type information.\
_This preset includes the `recommended-legacy` preset._

</details>

[Full Presets List↗](https://eslint-react.xyz/docs/presets)

## Rules
Expand Down
2 changes: 0 additions & 2 deletions packages/plugins/eslint-plugin-react-debug/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ npm install --save-dev eslint-plugin-react-dom

## Setup

Add the plugin to your `eslint.config.js`:

```js
// @ts-check

Expand Down
2 changes: 0 additions & 2 deletions packages/plugins/eslint-plugin-react-dom/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ npm install --save-dev eslint-plugin-react-dom

## Setup

Add the plugin to your `eslint.config.js`:

```js
// @ts-check

Expand Down
2 changes: 0 additions & 2 deletions packages/plugins/eslint-plugin-react-hooks-extra/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ npm install --save-dev eslint-plugin-react-hooks-extra

## Setup

Add the plugin to your `eslint.config.js`:

```js
// @ts-check

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ npm install --save-dev eslint-plugin-react-naming-convention

## Setup

Add the plugin to your `eslint.config.js`:

```js
// @ts-check

Expand Down
2 changes: 0 additions & 2 deletions packages/plugins/eslint-plugin-react-web-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ npm install --save-dev eslint-plugin-react-web-api

## Setup

Add the plugin to your `eslint.config.js`:

```js
// @ts-check

Expand Down
2 changes: 0 additions & 2 deletions packages/plugins/eslint-plugin-react-x/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ npm install --save-dev eslint-plugin-react-x

## Setup

Add the plugin to your `eslint.config.js`:

```js
// @ts-check

Expand Down
45 changes: 0 additions & 45 deletions packages/plugins/eslint-plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ pnpm add --save-dev @eslint-react/eslint-plugin

### Flat Config

Add the plugin to your `eslint.config.js`:

```js
// @ts-check

Expand All @@ -97,29 +95,6 @@ export default [
];
```

### Legacy Config

<details>
<summary>Click to toggle contents</summary>

Add the plugin to your `.eslintrc.json`:

```json
{
"parser": "@typescript-eslint/parser",
"plugins": ["@eslint-react/eslint-plugin"],
"extends": ["eslint:recommended"],
"overrides": [
{
"files": ["**/*.{ts,tsx}"],
"extends": [
"plugin:@eslint-react/recommended-legacy"
]
}
]
}
```

[Full Installation Guide ↗](https://eslint-react.xyz/docs/installation)

</details>
Expand All @@ -141,26 +116,6 @@ Add the plugin to your `.eslintrc.json`:
Enable rules that are recommended by ESLint React with additional rules that require type information.\
_This preset includes the `recommended` preset._

### Legacy Config

<details>
<summary>Click to toggle contents</summary>

- **core-legacy**\
Enable rules that are renderer-agnostic.
- **dom-legacy**\
Enable rules that are specific to React DOM.
- **web-api-legacy**\
Enable rules for interacting with Web APIs.
- **recommended-legacy**\
Enable rules that are recommended by ESLint React.\
_This preset includes the `core-legacy`, `dom-legacy`, and `web-api-legacy` presets._
- **recommended-type-checked-legacy**\
Enable rules that are recommended by ESLint React with additional rules that require type information.\
_This preset includes the `recommended-legacy` preset._

</details>

[Full Presets List↗](https://eslint-react.xyz/docs/presets)

## Rules
Expand Down

0 comments on commit ba92e76

Please sign in to comment.