eslint-plugin-oxlint
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -9,2 +9,8 @@ import * as ruleMaps from './rules.js' | ||
rules, | ||
configs: { | ||
recommended: { | ||
plugins: ["oxlint"], | ||
rules, | ||
}, | ||
}, | ||
}; |
{ | ||
"name": "eslint-plugin-oxlint", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Turn off all rules already supported by oxlint", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -17,13 +17,32 @@ # eslint-plugin-oxlint | ||
This is a flat config usage. | ||
### Flat config | ||
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. Use it like this: | ||
```js | ||
// eslint.config.js | ||
import oxlint from "eslint-plugin-oxlint" | ||
import oxlint from "eslint-plugin-oxlint"; | ||
export default [ | ||
... // other plugins | ||
...// other plugins | ||
oxlint, // oxlint should be the last one | ||
] | ||
]; | ||
``` | ||
### Legacy config | ||
If you are using legacy configuration (eslint < 9.0), you can use the following config: | ||
```js | ||
// .eslintrc.js | ||
module.exports = { | ||
... // other config | ||
presets: [ | ||
... // other presets | ||
"plugin:oxlint/recommended", | ||
], | ||
} | ||
``` | ||
### Run it before eslint | ||
And then you can add the following script to your `package.json`: | ||
@@ -44,2 +63,3 @@ | ||
## License | ||
[MIT](https://github.com/Dunqing/eslint-plugin-oxlint/blob/main/LICENSE) |
Sorry, the diff of this file is not supported yet
39249
721
64