-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.js
More file actions
21 lines (20 loc) · 923 Bytes
/
Copy patheslint.config.js
File metadata and controls
21 lines (20 loc) · 923 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import js from "@eslint/js";
import tseslint from "typescript-eslint";
export default tseslint.config(
// `site/` is the mkdocs build output and `.venv-docs/` the Python venv that builds it — both are
// created by following docs/README.md's local-preview instructions, and both are already in
// .gitignore. ESLint does NOT read .gitignore, so they have to be named again here; without this,
// `npm run lint` drowns in thousands of errors from minified vendor bundles and site-packages JS
// (2353 of them, against ~0 from this repo's own code) and is useless as a signal.
{ ignores: ["dist/", "node_modules/", "site/", ".venv-docs/", "src/api/schema.d.ts"] },
js.configs.recommended,
...tseslint.configs.recommended,
{
languageOptions: {
globals: { process: "readonly", console: "readonly" },
},
rules: {
"@typescript-eslint/consistent-type-imports": "error",
},
},
);