Skip to content

Commit 8a86b93

Browse files
committed
docs: minor improvements
1 parent 8817775 commit 8a86b93

File tree

3 files changed

+134
-133
lines changed

3 files changed

+134
-133
lines changed

apps/website/content/docs/migration.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,15 +154,16 @@ The following table compares all rules from `eslint-plugin-react` with their ESL
154154

155155
You can migrate gradually by using both plugins together, using the `disableConflictEslintPluginReact` ruleset:
156156

157-
```js
158-
import reactPlugin from "eslint-plugin-react";
157+
```ts title="eslint.config.js"
158+
import pluginReact from "eslint-plugin-react";
159159
import eslintReact from "@eslint-react/eslint-plugin";
160+
160161
export default [
161162
// Start with the eslint-plugin-react
162163
{
163164
files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],
164165
// Whatever config you had enabled with eslint-plugin-react
165-
...reactPlugin.configs.flat.recommended,
166+
...pluginReact.configs.flat.recommended,
166167

167168
// Now disable all conflicting rules
168169
...eslintReact.configs['disable-conflict-eslint-plugin-react],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"@typescript-eslint/rule-tester": "^8.41.0",
7070
"@typescript-eslint/types": "^8.41.0",
7171
"ansis": "^4.1.0",
72-
"cspell": "^9.2.0",
72+
"cspell": "^9.2.1",
7373
"dedent": "^1.6.0",
7474
"dprint": "^0.50.1",
7575
"effect": "^3.17.9",

0 commit comments

Comments
 (0)