Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
chore: update ESlint from v8 to v9
  • Loading branch information
ersachin3112 committed Jul 20, 2025
commit 8201e5bd03b6f3426cff9dc8277b49da4cab68f1
5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

7 changes: 0 additions & 7 deletions .eslintrc.js

This file was deleted.

14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ Then add the plugin to your `webpack` configuration. For example:
**webpack.config.js**

```js
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");

module.exports = {
module: {
Expand Down Expand Up @@ -296,15 +296,15 @@ module.exports = {
minify: [
CssMinimizerPlugin.cssnanoMinify,
CssMinimizerPlugin.cleanCssMinify,
async (data, inputMap, minimizerOptions) => {
async (data, inputMap, minimizerOptions) =>
// Custom minifier function
return {
code: `a{color: red}`,
map: `{"version": "3", ...}`,
({
code: "a{color: red}",
map: "{\"version\": \"3\", ...}",
warnings: [],
errors: [],
};
},
})
,
],
}),
],
Expand Down
22 changes: 22 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { defineConfig } from "eslint/config";
import configs from "eslint-config-webpack/configs.js";
import n from "eslint-plugin-n";

export default defineConfig([
{
extends: [configs["recommended-dirty"]],
plugins: {
n,
},
rules: {
// Disable experimental Node.js API warnings for os.availableParallelism
// This API is widely supported and stable in practice
"n/no-unsupported-features/node-builtins": [
"error",
{
ignores: ["os.availableParallelism"],
},
],
},
},
]);
Loading
Loading