Skip to content

Commit e65014b

Browse files
committed
chore: upgrade eslint from v8 to v9
1 parent e86ed6d commit e65014b

21 files changed

+2955
-667
lines changed

.eslintignore

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

.eslintrc.js

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

README.md

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

4242
```js
43-
const JsonMinimizerPlugin = require("json-minimizer-webpack-plugin");
4443
const CopyPlugin = require("copy-webpack-plugin");
44+
const JsonMinimizerPlugin = require("json-minimizer-webpack-plugin");
4545

4646
module.exports = {
4747
module: {
@@ -87,7 +87,7 @@ Finally, run `webpack` using the method you normally use (e.g., via CLI or an np
8787
Type:
8888

8989
```ts
90-
type test = string | RegExp | Array<string | RegExp>;
90+
type test = string | RegExp | (string | RegExp)[];
9191
```
9292

9393
Default: `/\.json(\?.*)?$/i`
@@ -112,7 +112,7 @@ module.exports = {
112112
Type:
113113

114114
```ts
115-
type include = string | RegExp | Array<string | RegExp>;
115+
type include = string | RegExp | (string | RegExp)[];
116116
```
117117

118118
Default: `undefined`
@@ -139,7 +139,7 @@ module.exports = {
139139
Type:
140140

141141
```ts
142-
type exclude = string | RegExp | Array<string | RegExp>;
142+
type exclude = string | RegExp | (string | RegExp)[];
143143
```
144144

145145
Default: `undefined`
@@ -165,11 +165,13 @@ module.exports = {
165165

166166
Type:
167167

168+
<!-- eslint-skip -->
169+
168170
```ts
169-
type minimizerOptions = {
171+
interface minimizerOptions {
170172
space?: null | string | number;
171-
replacer?: null | Function | Array<string | number>;
172-
};
173+
replacer?: null | Function | (string | number)[];
174+
}
173175
```
174176

175177
Default: `{ replacer: null, space: null }`

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)