-
Notifications
You must be signed in to change notification settings - Fork 5
/
eslint.config.js
38 lines (34 loc) · 1.03 KB
/
eslint.config.js
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
import javascript from "@eslint/js"
import typescript from "@typescript-eslint/eslint-plugin"
import globals from "globals"
export default [
{
plugins: {
"@typescript-eslint": typescript,
},
ignores: ["js/**"],
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
},
rules: {
...javascript.configs.recommended.rules,
...typescript.configs.recommended.rules,
"@typescript-eslint/array-type": ["error", {"default": "array-simple"}],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-inferrable-types": ["error", { "ignoreProperties": true }],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-shadow": "error",
"comma-dangle": ["error", "always-multiline"],
"indent": ["error", 2],
"no-redeclare": "error",
"no-shadow": "off",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"quotes": "error",
"semi": ["error", "never"],
},
},
]