Skip to content

Commit 2c896ae

Browse files
authored
chore: upgrade eslint from v8 to v9 (#118)
1 parent e86ed6d commit 2c896ae

26 files changed

+3929
-1702
lines changed

.cspell.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"version": "0.2",
33
"language": "en,en-gb",
4-
"words": ["memfs", "pathinfo", "commitlint", "nodenext"],
5-
4+
"words": ["memfs", "pathinfo", "commitlint", "nodenext", "eslintcache"],
65
"ignorePaths": [
76
"CHANGELOG.md",
87
"package.json",

.eslintignore

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

.eslintrc.js

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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ logs
55
*.log
66
npm-debug.log*
77
.eslintcache
8+
.cspellcache
89
/coverage
910
/dist
1011
/local

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)