-
Notifications
You must be signed in to change notification settings - Fork 13
/
.eslintrc.yml
48 lines (48 loc) · 963 Bytes
/
.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
parser: babel-eslint
parserOptions:
ecmaVersion: 6
extends:
- airbnb-base
- plugin:flowtype/recommended
plugins:
- flowtype
rules:
brace-style:
- error
- stroustrup
class-methods-use-this: off
comma-dangle:
- error
-
arrays: always-multiline
objects: always-multiline
imports: always-multiline
exports: always-multiline
functions: ignore
max-len:
- warn
-
code: 100
comments: 80
ignoreUrls: true
ignorePattern: "(new Error\\(|new TypeError\\()"
ignoreTrailingComments: true
tabWidth: 2
no-param-reassign: off
no-underscore-dangle: off
no-unused-vars: warn
no-warning-comments: warn
quotes:
- error
- single
-
avoidEscape: true
allowTemplateLiterals: true
require-jsdoc:
- error
-
require:
FunctionDeclaration: true
MethodDefinition: true
ClassDeclaration: true
valid-jsdoc: error