-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
113 lines (113 loc) · 3.41 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
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"project": "./tsconfig.json",
"tsconfigRootDir": ".",
"ecmaVersion": 2018, // Allows for the parsing of modern ECMAScript features
"sourceType": "module" // Allows for the use of imports
},
"rules": {
"class-name": true,
"comment-format": [true],
"curly": 2,
"eofline": true,
"forin": true,
"indent": [true, "spaces"],
"label-position": true,
"member-access": false,
"member-ordering": [
true,
{
"order": ["static-field", "instance-field", "constructor"],
"alphabetize": false
}
],
"no-arg": true,
"no-bitwise": 0,
"no-console": 0,
"no-construct": true,
"no-consecutive-blank-lines": true,
"no-debugger": 0,
"no-duplicate-variable": true,
"no-empty": 0,
"no-eval": 0,
"no-inferrable-types": false,
"no-shadowed-variable": false,
"no-string-literal": true,
"no-switch-case-fall-through": true,
"no-trailing-whitespace": true,
"no-unused-expression": [true, "allow-fast-null-checks"],
"no-use-before-declare": false,
"no-var-keyword": true,
"no-empty-interface": true,
"no-var-requires": true,
"no-null-keyword": true,
"no-default-export": false,
"no-require-imports": false,
"no-unnecessary-callback-wrapper": true,
"prefer-conditional-expression": false,
"arrow-return-shorthand": true,
"prefer-object-spread": true,
"use-isnan": 2,
"only-arrow-functions": true,
"promise-function-async": false,
"object-literal-sort-keys": false,
"newline-before-return": 0,
"import-spacing": true,
"new-parens": 2,
"one-line": [
true,
"check-open-brace",
"check-whitespace",
"check-else",
"check-finally",
"check-catch"
],
"quotemark": [true, "single", "avoid-escape", "avoid-template"],
"radix": 0,
"semicolon": [true, "always"],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
}
],
"variable-name": [
true,
"ban-keywords",
"check-format",
"allow-leading-underscore",
"allow-trailing-underscore",
"allow-pascal-case"
],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type"
],
"space-before-function-paren": [
true,
{
"asyncArrow": "always",
"named": "never",
"anonymous": "never",
"method": "never",
"constructor": "never"
}
]
}
}