-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.yml
85 lines (85 loc) · 1.66 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
parser: "@typescript-eslint/parser"
env:
browser: false
node: true
es6: true
extends:
- airbnb-base
- plugin:jest/all
- plugin:import/errors
- plugin:import/warnings
- plugin:import/typescript
- plugin:@typescript-eslint/recommended
plugins:
- jest
- "@typescript-eslint"
root: true
globals: {}
rules:
import/no-unresolved:
- 2
- commonjs: true
amd: true
ignore: ['.json$']
max-len:
- error
- code: 150
ignoreComments: true
ignoreTrailingComments: true
ignoreUrls: true
ignoreStrings: true
prefer-destructuring: 'off'
no-await-in-loop: 'off'
no-plusplus: 'off'
no-continue: 'off'
no-restricted-syntax:
- error
- ForInStatement
- LabeledStatement
- WithStatement
no-use-before-define:
- error
- functions: false
variables: false
no-underscore-dangle: 'off'
object-curly-newline:
- error
- consistent: true
import/prefer-default-export: 'off'
no-multi-spaces:
- error
- ignoreEOLComments: true
jest/require-top-level-describe: 'off'
jest/no-hooks: 'off'
jest/no-if: 'off'
jest/no-conditional-expect: 'off'
jest/no-expect-resolves: 'off'
jest/lowercase-name: 'off'
"@typescript-eslint/naming-convention":
- error
- selector: variableLike
format:
- camelCase
leadingUnderscore: allow
- selector: variable
format:
- camelCase
- UPPER_CASE
leadingUnderscore: allow
"@typescript-eslint/no-unused-vars":
- warn
- argsIgnorePattern: "^_"
overrides: []
settings:
import/resolver:
alias:
map:
- - "@src"
- "./src"
- - "@tests"
- "./tests"
- - "@events"
- "./events"
extensions:
- ".ts"
- ".js"