Commit 494ad88 1 parent 7322586 commit 494ad88 Copy full SHA for 494ad88
File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,17 @@ import n from "eslint-plugin-n"
4
4
import stylistic from "@stylistic/eslint-plugin"
5
5
6
6
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
+ } ,
7
18
js . configs . recommended ,
8
19
n . configs [ "flat/recommended" ] ,
9
20
{
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import * as fs from "node:fs/promises"
3
3
import * as path from "node:path"
4
4
import { fileURLToPath } from "node:url"
5
5
import { pipeline } from "node:stream/promises"
6
- import { setMaxListeners } from "node:events"
7
6
8
7
export const root = path . dirname ( path . dirname ( fileURLToPath ( import . meta. url ) ) )
9
8
export const p = ( ...args ) => path . resolve ( root , ...args )
You can’t perform that action at this time.
0 commit comments