Skip to content

Commit cc2bcdd

Browse files
chore: update ESlint from v8 to v9
1 parent 6f5b597 commit cc2bcdd

40 files changed

+4249
-2090
lines changed

.eslintignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ Then add the plugin to your `webpack` configuration. For example:
4242
**webpack.config.js**
4343

4444
```js
45-
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
4645
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");
46+
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
4747

4848
module.exports = {
4949
module: {
@@ -296,15 +296,14 @@ module.exports = {
296296
minify: [
297297
CssMinimizerPlugin.cssnanoMinify,
298298
CssMinimizerPlugin.cleanCssMinify,
299-
async (data, inputMap, minimizerOptions) => {
299+
async (data, inputMap, minimizerOptions) =>
300300
// Custom minifier function
301-
return {
302-
code: `a{color: red}`,
303-
map: `{"version": "3", ...}`,
301+
({
302+
code: "a{color: red}",
303+
map: '{"version": "3", ...}',
304304
warnings: [],
305305
errors: [],
306-
};
307-
},
306+
}),
308307
],
309308
}),
310309
],

eslint.config.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { defineConfig } from "eslint/config";
2+
import configs from "eslint-config-webpack/configs.js";
3+
4+
export default defineConfig([
5+
{
6+
extends: [configs["recommended-dirty"]],
7+
},
8+
]);

0 commit comments

Comments
 (0)