-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
40 lines (40 loc) · 1.05 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
env:
browser: true
es2021: true
extends:
- eslint:recommended
- plugin:@typescript-eslint/recommended
- prettier
overrides: []
parser: '@typescript-eslint/parser'
parserOptions:
ecmaVersion: latest
sourceType: module
plugins:
- '@typescript-eslint'
- prettier
- jest
rules:
semi:
- error
- always
keyword-spacing: ['error', { 'before': true, 'after': true }]
no-trailing-spaces: 2
'@typescript-eslint/no-unused-vars': 'error'
'@typescript-eslint/explicit-function-return-type': 'error'
'@typescript-eslint/no-explicit-any': 'off'
'@typescript-eslint/no-non-null-assertion': 'error'
'@typescript-eslint/no-empty-function': 'error'
'@typescript-eslint/no-empty-interface': 'error'
'@typescript-eslint/ban-ts-comment': 'error'
'jest/expect-expect': 'error'
'jest/no-disabled-tests': 'warn'
'jest/no-focused-tests': 'error'
'jest/no-identical-title': 'error'
'jest/prefer-to-have-length': 'error'
'jest/prefer-expect-assertions': 'error'
'jest/valid-expect': 'error'
indent:
- error
- tab
- SwitchCase: 1