Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use eslint-rspack-plugin instead of eslint-webpack-plugin #5

Merged
merged 2 commits into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

An Rsbuild plugin to run ESLint checks during the compilation.

The plugin has integrated [eslint-webpack-plugin](https://www.npmjs.com/package/eslint-webpack-plugin) internally.
The plugin has integrated [eslint-rspack-plugin](https://www.npmjs.com/package/eslint-rspack-plugin) internally.

<p>
<a href="https://npmjs.com/package/@rsbuild/plugin-eslint">
Expand Down Expand Up @@ -71,9 +71,9 @@ pluginEslint({

### eslintPluginOptions

To modify the options of `eslint-webpack-plugin`, please refer to [eslint-webpack-plugin - README](https://github.com/webpack-contrib/eslint-webpack-plugin#readme) to learn about available options.
To modify the options of `eslint-rspack-plugin`, please refer to [eslint-rspack-plugin - README](https://github.com/webpack-contrib/eslint-rspack-plugin#readme) to learn about available options.

- **Type:** [Options](https://github.com/webpack-contrib/eslint-webpack-plugin/blob/master/types/options.d.ts)
- **Type:** [Options](https://github.com/webpack-contrib/eslint-rspack-plugin/blob/master/types/options.d.ts)
- **Default:**

```ts
Expand Down
12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rsbuild/plugin-eslint",
"version": "1.0.1",
"version": "1.0.2",
"repository": "https://github.com/rspack-contrib/rsbuild-plugin-eslint",
"license": "MIT",
"type": "module",
Expand All @@ -14,9 +14,7 @@
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"files": ["dist"],
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
Expand All @@ -34,13 +32,13 @@
]
},
"dependencies": {
"eslint-webpack-plugin": "^4.2.0",
"eslint-rspack-plugin": "^4.2.0",
"webpack": "^5.93.0"
},
"devDependencies": {
"@biomejs/biome": "^1.8.3",
"@playwright/test": "^1.45.3",
"@rsbuild/core": "1.0.0-alpha.9",
"@rsbuild/core": "1.0.1-beta.14",
"@types/node": "^20.14.13",
"eslint": "^9.8.0",
"nano-staged": "^0.8.0",
Expand All @@ -51,7 +49,7 @@
},
"peerDependencies": {
"@rsbuild/core": "1.x",
"eslint": "^8.0.0 || ^9.0.0"
"eslint": "^8.0.0 || ^9.0.0"
},
"peerDependenciesMeta": {
"@rsbuild/core": {
Expand Down
Loading