Skip to content

Commit 4b84b51

Browse files
authored
chore: move notice to run oxlint before eslint to top (#421)
1 parent b2f3767 commit 4b84b51

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,18 @@ pnpm add eslint-plugin-oxlint -D
1717

1818
## Usage
1919

20+
### Run oxlint before eslint
21+
22+
Add the following script to your `package.json`:
23+
24+
```json
25+
{
26+
"scripts": {
27+
"lint": "npx oxlint && npx eslint"
28+
}
29+
}
30+
```
31+
2032
### Flat config
2133

2234
This plugin is optimized for flat config usage (eslint >= 9.0). See [here](https://eslint.org/docs/latest/use/configure/configuration-files-new) for more details.
@@ -80,18 +92,6 @@ export default [
8092

8193
`buildFromOxlintConfigFile` is not supported for legacy configuration (eslint < 9.0).
8294

83-
### Run it before eslint
84-
85-
And then you can add the following script to your `package.json`:
86-
87-
```json
88-
{
89-
"scripts": {
90-
"lint": "npx oxlint && npx eslint"
91-
}
92-
}
93-
```
94-
9595
## All Configs
9696

9797
```js

0 commit comments

Comments
 (0)