Skip to content

Commit 6f4b79a

Browse files
committed
reduce eslint exceptions
1 parent 8175ee1 commit 6f4b79a

3 files changed

Lines changed: 4 additions & 10 deletions

File tree

eslint.config.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,6 @@ import config from "./dist/index.js";
44
export default [
55
...config,
66
{ ignores: ["rules.json"] },
7-
{
8-
files: ["scripts/**"],
9-
rules: {
10-
"no-console": "off",
11-
"n/no-sync": "off",
12-
"n/no-process-env": "off",
13-
"import-x/no-extraneous-dependencies": "off",
14-
"import-x/no-relative-parent-imports": "off",
15-
},
16-
},
7+
// n/no-sync crashes without type information (parserOptions.project)
8+
{ files: ["scripts/**"], rules: { "n/no-sync": "off" } },
179
];

scripts/generate-rules-md.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-console */
12
import { readFileSync, writeFileSync, mkdirSync, rmSync } from "node:fs";
23
import { resolve, dirname } from "node:path";
34
import { fileURLToPath } from "node:url";

scripts/inspect-rules.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-console, import-x/no-relative-parent-imports */
12
import { builtinRules } from "eslint/use-at-your-own-risk";
23

34
import config from "../src/index";

0 commit comments

Comments
 (0)