Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

Commit bd77fb0

Browse files
authored
chore: upgrade eslint from v8 to v9 (#133)
1 parent cffec69 commit bd77fb0

16 files changed

Lines changed: 2443 additions & 1439 deletions

.cspell.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@
2929
"Emojies",
3030
"molestie",
3131
"Lyyy",
32-
"memfs"
32+
"memfs",
33+
"eslintcache",
34+
"cspellcache"
3335
],
34-
3536
"ignorePaths": [
3637
"CHANGELOG.md",
3738
"package.json",

.eslintignore

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

.eslintrc.js

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

README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ Remark options
7272
Type:
7373

7474
```ts
75-
type remarkOptions = {
76-
plugins: Array<string | Array>;
77-
settings: Object;
78-
data: Object;
79-
};
75+
interface remarkOptions {
76+
plugins: (string | any[])[];
77+
settings: object;
78+
data: object;
79+
}
8080
```
8181

8282
- **[`plugins`](#plugins)**
@@ -90,7 +90,7 @@ Allows to connect [`remark` plugins](https://github.com/wooorm/remark/blob/maste
9090
Type:
9191

9292
```ts
93-
type plugins = Array<string | Array>;
93+
type plugins = (string | any[])[];
9494
```
9595

9696
Default: `[]`
@@ -133,8 +133,8 @@ If need to specify options for the plugin, you can pass the plugin using an arra
133133
**webpack.config.js**
134134

135135
```js
136-
import RemarkFrontmatter from "remark-frontmatter";
137136
import RemarkBookmarks from "remark-bookmarks";
137+
import RemarkFrontmatter from "remark-frontmatter";
138138

139139
module.exports = {
140140
// ...
@@ -175,7 +175,7 @@ Remark settings
175175
Type:
176176

177177
```ts
178-
type settings = Object;
178+
type settings = object;
179179
```
180180

181181
Default: `undefined`
@@ -217,7 +217,7 @@ Information available to all plugins
217217
Type:
218218

219219
```ts
220-
type data = Object;
220+
type data = object;
221221
```
222222

223223
Default: `undefined`
@@ -317,6 +317,7 @@ To get HTML, you need to add [`remark-html`](https://github.com/wooorm/remark-ht
317317

318318
```js
319319
import md from "markdown-file.md";
320+
320321
console.log(md);
321322
```
322323

@@ -356,6 +357,7 @@ module.exports = {
356357

357358
```js
358359
import md from "markdown-file.md";
360+
359361
console.log(md);
360362
```
361363

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)