-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc
36 lines (36 loc) · 1.18 KB
/
.eslintrc
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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"jsx": true,
"useJSXTextNode": true,
"ecmaVersion": 2021,
"sourceType": "module",
"project": ["tsconfig.json", "tests/tsconfig.json"]
},
"plugins": ["@typescript-eslint", "@typescript-eslint/eslint-plugin", "prettier", "simple-import-sort"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"],
"rules": {
"@typescript-eslint/array-type": [
"warn",
{
"default": "generic",
"readonly": "generic"
}
],
"@typescript-eslint/explicit-member-accessibility": "warn",
"@typescript-eslint/no-misused-promises": "error",
"@typescript-eslint/no-unused-expressions": "warn",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/strict-boolean-expressions": "warn",
"class-methods-use-this": "warn",
"curly": ["warn", "multi-line", "consistent"],
"no-constant-condition": "off",
"prefer-const": "warn",
"prettier/prettier": "warn",
"simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"require-await": "warn"
}
}