forked from duckdb/duckdb-wasm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.base.json
54 lines (54 loc) · 1.62 KB
/
.eslintrc.base.json
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
49
50
51
52
53
54
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["react"],
"extends": ["eslint:recommended", "plugin:react/recommended", "plugin:@typescript-eslint/recommended"],
"env": {
"browser": true,
"node": true
},
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-types": "warn",
"@typescript-eslint/prefer-for-of": "off",
"@typescript-eslint/no-for-in-array": "error",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/no-non-null-assertion": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"vars": "all",
"args": "none"
}
],
"@typescript-eslint/no-shadow": "error",
"@typescript-eslint/no-namespace": "error",
"linebreak-style": ["error", "unix"],
"no-irregular-whitespace": ["error", { "skipComments": true }],
"no-alert": "error",
"prefer-const": "error",
"no-return-assign": "error",
"no-useless-call": "error",
"no-useless-concat": "error"
},
"settings": {
"react": {
"pragma": "React",
"fragment": "Fragment",
"version": "detect"
}
},
"parserOptions": {
"extraFileExtensions": [".cjs", ".mjs"]
},
"overrides": [
{
"files": ["*.js", "*.jsx"],
"rules": {
"@typescript-eslint/...": "off"
}
}
]
}