Skip to content

Commit ddac353

Browse files
authored
chore: upgrade eslint from v8 to v9 (#168)
]
1 parent ce624aa commit ddac353

15 files changed

+3407
-1357
lines changed

.eslintignore

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

.eslintrc.js

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

README.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ myFunction("Hello world");
7474

7575
```js
7676
import {
77-
myVariable,
7877
myFunction,
78+
myVariable,
7979
} from "exports-loader?exports=myVariable,myFunction!./file.js";
8080
// Adds the following code to the file's source:
8181
//
@@ -85,7 +85,7 @@ import {
8585
//
8686
// export { myVariable, myFunction };
8787

88-
const newVariable = myVariable + "!!!";
88+
const newVariable = `${myVariable}!!!`;
8989

9090
console.log(newVariable);
9191

@@ -247,6 +247,8 @@ module.exports = {
247247

248248
Generate output:
249249

250+
<!-- eslint-skip -->
251+
250252
```js
251253
// ...
252254
// Code
@@ -273,7 +275,6 @@ The `|` or `%20` (space) allow to separate the `syntax`, `name` and `alias` of e
273275
String syntax - `[[syntax] [name] [alias]]` or `[[syntax]|[name]|[alias]]`, where:
274276

275277
- `[syntax]` (**may be omitted**) -
276-
277278
- if `type` is `module`- can be `default` and `named`,
278279
- if `type` is `commonjs`- can be `single` and `multiple`
279280

@@ -353,6 +354,8 @@ module.exports = {
353354

354355
Generate output:
355356

357+
<!-- eslint-skip -->
358+
356359
```js
357360
// ...
358361
// Code
@@ -494,6 +497,8 @@ module.exports = {
494497

495498
Generate output:
496499

500+
<!-- eslint-skip -->
501+
497502
```js
498503
// ...
499504
// Code
@@ -617,7 +622,7 @@ Generate output:
617622
// Code
618623
// ...
619624

620-
module.exports = { Foo, Bar, BazA: Bar };
625+
module.exports = { Bar, BazA: Bar, Foo };
621626
```
622627

623628
###### ES Module Default Export And Named Exports Together
@@ -642,6 +647,8 @@ module.exports = {
642647

643648
Generate output:
644649

650+
<!-- eslint-skip -->
651+
645652
```js
646653
// ...
647654
// Code
@@ -677,6 +684,8 @@ module.exports = {
677684

678685
Generate output:
679686

687+
<!-- eslint-skip -->
688+
680689
```js
681690
// ...
682691
// Code

eslint.config.js

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)