forked from stanford-oval/genie-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
123 lines (120 loc) · 2.56 KB
/
.eslintrc.yml
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
114
115
116
117
118
119
120
121
122
123
env:
es6: true
node: true
parser: '@typescript-eslint/parser'
plugins:
- '@typescript-eslint'
parserOptions:
ecmaVersion: 2018
extends:
- 'eslint:recommended'
- 'plugin:@typescript-eslint/recommended'
rules:
indent: off
no-console: off
no-fallthrough: off
'@typescript-eslint/no-empty-function': off
require-atomic-updates: off
no-lonely-if: off
arrow-body-style: off
require-yield: off
'@typescript-eslint/no-non-null-assertion': off
'@typescript-eslint/no-explicit-any': off
# namespaces are useful to add static methods to enums and to implement
# nested classes
'@typescript-eslint/no-namespace': off
# temporary until migration is complete
'@typescript-eslint/no-this-alias': off
'@typescript-eslint/explicit-module-boundary-types': off
# correctness checks
strict:
- error
- global
consistent-return: error
array-callback-return: error
eqeqeq:
- error
- always
no-var: error
no-unused-vars: off
'@typescript-eslint/no-unused-vars':
- error
-
varsIgnorePattern: _
args: none
no-shadow-restricted-names: error
no-promise-executor-return: error
no-case-declarations: warn
no-eval: error
no-proto: error
no-sequences: error
no-throw-literal: error
no-unmodified-loop-condition: warn
no-useless-call: warn
no-useless-return: warn
no-void: error
no-self-compare: error
prefer-promise-reject-errors: error
no-label-var: error
no-new-object: error
no-invalid-this: error
prefer-arrow-callback: warn
prefer-numeric-literals: error
no-constructor-return: error
no-new-wrappers: error
no-return-await: warn
no-unused-expressions: warn
# code style
linebreak-style:
- error
- unix
semi:
- error
- always
curly:
- error
- multi-or-nest
- consistent
dot-location:
- error
- property
arrow-parens:
- error
- always
'@typescript-eslint/array-type':
- error
-
default: array-simple
block-spacing: error
computed-property-spacing: error
func-call-spacing: error
keyword-spacing:
- error
-
overrides:
catch:
before: true
after: false
space-before-function-paren:
- error
-
anonymous: never
named: never
asyncArrow: always
generator-star-spacing:
- error
-
anonymous:
before: false
after: false
named:
before: false
after: true
method:
before: true
after: false
'@typescript-eslint/type-annotation-spacing':
- error
-
before: true
after: true