Skip to content

Commit 494ad88

Browse files
committed
Fix some ESLint errors
1 parent 7322586 commit 494ad88

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

eslint.config.mjs

+11
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ import n from "eslint-plugin-n"
44
import stylistic from "@stylistic/eslint-plugin"
55

66
export default [
7+
// I have no clue why on earth it's not spelled out in the docs that `ignores` needs to be in
8+
// the first entry of the config, before anything else.
9+
// https://github.com/eslint/eslint/discussions/18304#discussioncomment-9069706
10+
{
11+
ignores: [
12+
"dist",
13+
"archive",
14+
// Ignoring for now.
15+
"examples",
16+
],
17+
},
718
js.configs.recommended,
819
n.configs["flat/recommended"],
920
{

scripts/_utils.js

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import * as fs from "node:fs/promises"
33
import * as path from "node:path"
44
import {fileURLToPath} from "node:url"
55
import {pipeline} from "node:stream/promises"
6-
import {setMaxListeners} from "node:events"
76

87
export const root = path.dirname(path.dirname(fileURLToPath(import.meta.url)))
98
export const p = (...args) => path.resolve(root, ...args)

0 commit comments

Comments
 (0)