forked from JohnWeisz/TypedJSON
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yaml
75 lines (65 loc) · 1.66 KB
/
.eslintrc.yaml
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
---
env:
es6: true
node: true
overrides:
-
files:
- '*.js'
extends:
- '@matthiaskunnen/eslint-config-base'
-
env:
jasmine: true
files:
- 'spec/**/*.ts'
extends:
- '@matthiaskunnen/eslint-config-typescript'
parser: '@typescript-eslint/parser'
parserOptions:
project:
- tsconfig/tsconfig.lint.json
sourceType: module
plugins:
- jasmine
rules:
'@typescript-eslint/no-use-before-define': off
func-names: off
jasmine/expect-matcher: error
jasmine/expect-single-argument: error
jasmine/missing-expect: error
jasmine/named-spy: off # We might consider this
jasmine/no-assign-spyon: error
jasmine/no-describe-variables: error
jasmine/no-disabled-tests: error
jasmine/no-expect-in-setup-teardown: error
jasmine/no-focused-tests: error
jasmine/no-global-setup: error
jasmine/no-pending-tests: warn
jasmine/no-promise-without-done-fail: error
jasmine/no-spec-dupes:
- error
- branch
jasmine/no-suite-callback-args: error
jasmine/no-suite-dupes: error
jasmine/no-unsafe-spy: error
jasmine/prefer-jasmine-matcher: error
-
files:
- 'src/**/*.ts'
extends:
- '@matthiaskunnen/eslint-config-typescript'
parser: '@typescript-eslint/parser'
parserOptions:
project:
- tsconfig/tsconfig.lint.json
sourceType: module
rules:
'@typescript-eslint/no-use-before-define':
- error
-
classes: true
enums: true
functions: false
variables: true
typedefs: true