-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc_.json
82 lines (82 loc) · 2.37 KB
/
.eslintrc_.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"env": {
"es2024": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": ["./tsconfig.json"]
},
"plugins": [
"unicorn",
"functional"
],
"extends": [
"plugin:@typescript-eslint/strict-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"plugin:unicorn/all"
],
"ignorePatterns": ["dist/**", "__test/", "__tests__/**", "tests/**", "test/**"],
"rules": {
"quotes": [
"error",
"backtick"
],
"indent": [
"error",
2,
{"SwitchCase": 1}],
"object-curly-spacing": ["error","always"],
"unicorn/consistent-destructuring": "off",
"unicorn/no-thenable": "off",
"unicorn/consistent-function-scoping": "off",
"unicorn/filename-case": ["error", {"case":"pascalCase"}],
"unicorn/require-post-message-target-origin": "off",
"unicorn/no-this-assignment": "off",
"unicorn/no-keyword-prefix": ["off"],
"unicorn/prevent-abbreviations": ["error", {
"ignore": [
".*Opts$",
"ctx",
"args*",
"Args*",
"el",
"fn*",
"opts",
"dest",
".*El$"
],
"allowList":{"args":true}}],
"@typescript-eslint/restrict-template-expressions": [
"error",
{
"allowBoolean": true,
"allowNumber": true
}
],
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/array-type": ["error", { "default":"generic" }],
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unsafe-assignment":"off",
"@typescript-eslint/no-unnecessary-condition": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"functional/no-conditional-statements": "off",
"functional/no-let": ["error", {"allowInFunctions":true}],
"functional/no-throw-statements": ["off"],
"functional/no-expression-statements": ["off"],
"functional/functional-parameters": ["off"],
"functional/no-try-statements": ["off"],
"functional/no-loop-statements": ["off"]
}
}