-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.yml
37 lines (29 loc) · 884 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
ignorePatterns:
- test/fixtures/*/source
- test/fixtures/react
- build
parser: '@typescript-eslint/parser'
plugins:
- '@typescript-eslint'
extends:
- nth
- plugin:@typescript-eslint/recommended
rules:
# Is there a case where no-unused-vars doesn't cover this?
'@typescript-eslint/no-unused-vars': off
'no-magic-numbers': off
'@typescript-eslint/no-magic-numbers': ["warn", {"ignoreReadonlyClassProperties": true, "ignore": [0, 1, 2], "ignoreTypeIndexes": true}]
# I don't use @ts comments frivolously.
'@typescript-eslint/ban-ts-comment': off
'no-use-before-define': ["error", { "functions": false, "variables": true }]
no-trailing-spaces: warn
# Disable style rules to let prettier own it
object-curly-spacing: off
comma-dangle: off
max-len: off
indent: off
# Slightly spooky
no-mixed-operators: off
env:
es6: true
node: true