-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
88 lines (88 loc) · 2.5 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
83
84
85
86
87
88
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "@stylistic", "prettier"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/strict-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"airbnb-base",
"airbnb-typescript/base",
"prettier",
"plugin:@stylistic/disable-legacy"
],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
// Below this line rule exist to remove overlap with prettify
"@stylistic/brace-style": "off",
"@stylistic/indent": "off",
// Above this line rule exist to remove overlap with prettify
"@stylistic/lines-between-class-members": ["error", "always", { "exceptAfterOverload": true }],
"class-methods-use-this": "off",
"no-param-reassign": [
"error",
{
"props": false
}
],
"no-underscore-dangle": "error",
"import/extensions": ["error", "always", { "ignorePackages": true }],
"import/prefer-default-export": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/prefer-readonly": "error",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "default",
"format": ["camelCase"]
},
{
"selector": "property",
"format": ["camelCase", "PascalCase"]
},
{
"selector": "variable",
"format": ["camelCase", "UPPER_CASE", "PascalCase"]
},
{
"selector": "parameter",
"format": ["camelCase", "PascalCase"],
"leadingUnderscore": "allow"
},
{
"selector": "typeLike",
"format": ["PascalCase"]
},
{
"selector": "enumMember",
"format": ["PascalCase"]
},
{
"selector": "objectLiteralProperty",
"format": ["camelCase", "PascalCase"]
},
{
"selector": "import",
"format": ["camelCase", "PascalCase"]
},
{
"selector": "classProperty",
"format": ["camelCase"],
"leadingUnderscore": "allow"
}
],
"@typescript-eslint/array-type": [
"error",
{
"default": "array"
}
],
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_", "args": "all" }]
}
}