-
Notifications
You must be signed in to change notification settings - Fork 22
/
.eslintrc.yaml
148 lines (148 loc) · 2.97 KB
/
.eslintrc.yaml
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
---
root: true
env:
node: true
extends:
- eslint:recommended
- airbnb-base
- plugin:import/recommended
parserOptions:
ecmaVersion: 13
sourceType: module
rules:
arrow-body-style: 'off'
array-bracket-spacing:
- error
- never
arrow-parens:
- error
- always
block-scoped-var: error
comma-dangle:
- error
- arrays: always-multiline
objects: always-multiline
imports: never
exports: never
functions: never
complexity:
- error
- max: 40
class-methods-use-this: 'off'
default-case: 'off'
global-require: 'off'
guard-for-in: 'off'
import/default: 'off'
import/extensions:
- 'error'
- 'always'
- ignorePackages: true
import/named: 'off'
import/no-cycle: 'off'
import/no-dynamic-require: 'off'
import/no-extraneous-dependencies: 'off'
import/no-named-as-default: 'off'
import/no-named-as-default-member: 'off'
import/no-unresolved:
- 'off'
import/order: 'off'
import/prefer-default-export: 'off'
jest/expect-expect: 'off'
lines-between-class-members: 'off'
no-console: error
no-continue: 'off'
no-debugger: error
no-fallthrough: 'off'
no-lonely-if: error
no-nested-ternary: 'off'
no-param-reassign: 'off'
no-plusplus: 'off'
no-prototype-builtins: 'off'
no-underscore-dangle: 'off'
no-use-before-define: 'off'
no-restricted-syntax: 'off'
no-shadow: 'off'
no-useless-constructor: 'off'
no-var: error
max-classes-per-file: 'off'
max-len:
- error
- code: 128
comments: 128
tabWidth: 2
ignoreUrls: true
ignoreStrings: true
ignoreRegExpLiterals: true
ignoreTemplateLiterals: true
ignorePattern: '(@returns|@param)'
object-curly-newline: 'off'
object-shorthand: 'off'
padding-line-between-statements:
- error
- blankLine: always
prev: block-like
next: '*'
- blankLine: always
prev: '*'
next: block-like
- blankLine: any
prev: block-like
next:
- block-like
- break
- blankLine: always
prev: '*'
next:
- return
- blankLine: always
prev:
- const
- let
- var
- function
next: '*'
- blankLine: always
prev:
- import
next:
- export
- blankLine: any
prev:
- const
- let
- var
next:
- const
- let
- var
- blankLine: always
prev: directive
next: '*'
- blankLine: any
prev: directive
next: directive
prefer-destructuring: 'off'
prefer-template: 'off'
quotes:
- error
- single
- avoidEscape: true
semi:
- error
- always
space-before-function-paren:
- error
- anonymous: never
named: never
asyncArrow: always
overrides:
- files:
- '**/test/**'
env:
jest: true
rules:
max-len: 'off'
indent: 'off'
no-template-curly-in-string: 'off'
no-underscore-dangle: 'off'
no-unused-vars: 'off'