-
Notifications
You must be signed in to change notification settings - Fork 113
Expand file tree
/
Copy patheslint.config.ts
More file actions
48 lines (47 loc) · 1.19 KB
/
eslint.config.ts
File metadata and controls
48 lines (47 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import js from "@eslint/js";
import globals from "globals";
import { defineConfig } from "eslint/config";
import { configs } from "typescript-eslint";
import noInstanceof from "eslint-plugin-no-instanceof";
export default defineConfig([
{ ignores: ["**/dist", "**/dist-examples", "**/node_modules"] },
js.configs.recommended,
...configs.recommended,
{
files: ["**/*.{ts,tsx}"],
plugins: {
"no-instanceof": noInstanceof,
},
languageOptions: {
ecmaVersion: 2020,
globals: globals.node,
},
rules: {
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-unused-vars": [
"error",
{
args: "none",
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
"@typescript-eslint/no-empty-object-type": "off",
"no-console": ["error"],
"no-instanceof/no-instanceof": "error",
},
},
{
files: ["libs/cli/scripts/**/*.ts", "libs/cli/src/cli.ts"],
rules: {
"no-console": "off",
},
},
{
files: ["**/evals/**/*.{ts,tsx}"],
rules: {
"@typescript-eslint/no-empty-object-type": "off",
},
},
]);