-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.yaml
54 lines (54 loc) · 1.55 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
env:
browser: true
es2020: true
extends:
- '@ridedott/eslint-config'
- 'plugin:react/recommended'
- 'plugin:jsx-a11y/recommended'
- 'plugin:react-hooks/recommended'
overrides:
- files: ./src/**/__tests__/*.{ts,tsx}
rules:
'@typescript-eslint/explicit-function-return-type': 'off'
'@typescript-eslint/no-magic-numbers': 'off'
jest/require-hook: 'error'
parserOptions:
ecmaVersion: 10
project: tsconfig.json
sourceType: module
settings:
react:
version: 'detect'
rules:
capitalized-comments:
- error
- always
- ignoreConsecutiveComments: true
func-style: 'off'
init-declarations: 'off'
immutable/no-let: 'off'
immutable/no-mutation: 'off'
immutable/no-this: 'off'
import/no-default-export: 'off'
jest/consistent-test-it: ['error', { fn: 'test', withinDescribe: 'test' }]
jest/expect-expect: 'off'
jest/prefer-expect-assertions: 'off'
jest/require-hook: 'off'
'@typescript-eslint/init-declarations': 'off'
'@typescript-eslint/member-ordering': 'off'
'@typescript-eslint/restrict-template-expressions': 'off'
'@typescript-eslint/sort-type-union-intersection-members': 'off'
'@typescript-eslint/strict-boolean-expressions': 'off'
max-lines-per-function: 'off'
max-params: 'off'
max-statements: 'off'
multiline-comment-style: 'off'
no-implicit-coercion: 'off'
react/prop-types: 'off'
sort-keys: 'off'
unicorn/consistent-function-scoping: 'off'
unicorn/filename-case:
- error
- case: kebabCase
unicorn/expiring-todo-comments: 'off'
unicorn/prevent-abbreviations: 'off'