This repository has been archived by the owner on Jan 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.yml
70 lines (69 loc) · 2.65 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
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
root: true
parser: '@typescript-eslint/parser'
parserOptions:
project:
- './tsconfig.json'
plugins:
- '@typescript-eslint'
- react
- react-native
- prettier
- simple-import-sort
- jest
extends:
- '@react-native'
- eslint:all
- plugin:@typescript-eslint/all
- plugin:react/all
- plugin:react-native/all
- plugin:jest/all
- prettier
rules:
'@typescript-eslint/array-type':
- 2
- default: 'generic'
'@typescript-eslint/init-declarations': 0 # Worsens the structure
'@typescript-eslint/lines-between-class-members': 0 # Worsens the structure
'@typescript-eslint/no-confusing-void-expression':
- 2
- ignoreArrowShorthand: true
'@typescript-eslint/no-empty-interface': 0 # Worsens the structure
'@typescript-eslint/no-magic-numbers': 0 # Worsens the structure
capitalized-comments: 0 # Worsens the structure
jest/require-hook: 0 # Error prone
line-comment-position: 0 # Worsens the structure
max-lines-per-function: 0 # Worsens the structure
no-inline-comments: 0 # Worsens the structure
no-magic-numbers: 0 # Worsens the structure
no-ternary: 0 # Worsens the structure
no-undefined: 0 # Sometimes necessary
one-var: 0 # Worsens the structure
react/forbid-component-props: 0 # Not valid for React Native, because we want to use the style prop
react/function-component-definition:
- 2
- namedComponents: arrow-function
unnamedComponents: arrow-function
react/jsx-filename-extension: 0 # We use tsx files
react/jsx-max-depth: 0 # As long as the file remains uncluttered, this limitation only encourages more complex structures
react/jsx-no-literals: 0 # It is just more complicated to read
react/jsx-props-no-spreading: 0 # Easier to write
simple-import-sort/exports: 2 # Enabling the plugin simple-import-sort
simple-import-sort/imports: 2 # Enabling the plugin simple-import-sort
sort-imports: 0 # We already use the simple-import-sort plugin
'@typescript-eslint/lines-around-comment': 0
'@typescript-eslint/naming-convention': 0
'@typescript-eslint/no-require-imports': 0
'@typescript-eslint/no-type-alias': 0
'@typescript-eslint/no-unsafe-assignment': 0
'@typescript-eslint/no-unsafe-call': 0
'@typescript-eslint/no-var-requires': 0
'@typescript-eslint/prefer-readonly-parameter-types': 0
'@typescript-eslint/restrict-template-expressions': 0
jest/no-commented-out-tests: 0
jest/prefer-expect-assertions: 0
max-lines: 0
max-params: 0
multiline-comment-style: 0
no-duplicate-imports: 0
no-param-reassign: 0
no-warning-comments: 0