-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.yml
62 lines (57 loc) · 1.53 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
# vi: set ft=yaml :
root: true
extends:
- 'eslint:recommended'
parserOptions:
ecmaVersion: 2020
sourceType: module
requireConfigFile: false
env:
es2020: true
node: true
browser: true
rules:
array-bracket-spacing: 2
block-spacing: 2
brace-style: [2, '1tbs', { allowSingleLine: true }]
comma-dangle: 2
comma-spacing: 2
comma-style: 2
complexity: [1, 16]
dot-location: [2, 'property']
eqeqeq: [2, 'smart']
indent: [0, 2, { SwitchCase: 1 }]
indent-legacy: [2, 2, { SwitchCase: 1 }]
key-spacing: [1, { beforeColon: false, afterColon: true }]
keyword-spacing: 2
max-depth: [1, 6]
max-len: [1, 80, 2, { ignoreComments: true, ignoreUrls: true, ignorePattern: "[`'\"\/],?$" }]
max-nested-callbacks: [1, 4]
no-caller: 2
no-constant-condition: [2, { checkLoops: false }]
no-eval: 2
no-implied-eval: 2
no-mixed-spaces-and-tabs: 2
no-multi-str: 2
no-shadow: [2, { allow: ['done', 'reject', 'resolve', 'conn', 'cb', 'err', 'error']}]
no-spaced-func: 2
no-trailing-spaces: 2
no-unexpected-multiline: 2
no-unneeded-ternary: 2
no-unreachable: 2
no-useless-concat: 2
no-unsafe-finally: 0
object-curly-spacing: [2, 'always']
operator-linebreak: [2, 'after']
quote-props: [2, 'consistent-as-needed']
quotes: [2, 'single', 'avoid-escape']
radix: 2
require-atomic-updates: 0
semi-spacing: 0
semi: [2, 'never']
space-before-blocks: 2
space-before-function-paren: [2, { anonymous: 'always', named: 'never' }]
space-infix-ops: 2
space-unary-ops: 2
space-in-parens: 2
wrap-regex: 2