-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy path.eslintrc.yml
49 lines (45 loc) · 968 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
49
env:
browser: true
es6: true
webextensions: true
plugins:
- import
- json
- '@typescript-eslint'
extends:
- eslint:recommended
- 'plugin:@typescript-eslint/recommended'
# TODO - 'plugin:@typescript-eslint/strict'
- 'plugin:@typescript-eslint/stylistic'
#- plugin:json/recommended
- plugin:import/recommended
- plugin:import/typescript
parserOptions:
sourceType: module
ecmaVersion: 2018
rules:
# Style
indent:
- warn
- 4
- SwitchCase: 1
linebreak-style:
- error
- unix
semi:
- error
- always
no-var: error
no-sequences: error
'@typescript-eslint/no-unused-vars': [error, {argsIgnorePattern: "^_"}]
# Additional control
import/no-cycle: error
import/first: error
# Would be nice to enforce order, but after resolution they are all relative
#import/order:
# - warn
# - newlines-between: never
"json/*": [error, allowComments]
settings:
import/resolver:
typescript: true