forked from hossein-zare/react-native-dropdown-picker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yaml
109 lines (109 loc) · 2.38 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
---
# docs at: https://eslint.org/docs/latest/use/configure/configuration-files
env:
browser: true
es2021: true
react-native/react-native: true
extends:
- airbnb
- airbnb-typescript
- airbnb/hooks
- eslint:recommended
- plugin:@typescript-eslint/recommended
- plugin:@typescript-eslint/stylistic
- plugin:eslint-comments/recommended
- plugin:import/errors
- plugin:import/recommended
- plugin:import/typescript
- plugin:import/warnings
- plugin:jsdoc/recommended
- plugin:json/recommended
- plugin:jsx-a11y/recommended
- plugin:react-hooks/recommended
- plugin:react-native/all
- plugin:react/recommended
- prettier
globals:
JSX: true
parser: '@typescript-eslint/parser'
parserOptions:
ecmaFeatures:
jsx: true
ecmaVersion: latest
project: ./tsconfig.json
sourceType: module
plugins:
- '@typescript-eslint'
- eslint-comments
- eslint-plugin-json
- import
- jsdoc
- jsx-a11y
- react
- react-hooks
- react-native
rules:
'@typescript-eslint/array-type':
- error
- default: 'generic'
readonly: 'generic'
'@typescript-eslint/explicit-function-return-type': error
'@typescript-eslint/explicit-module-boundary-types': error
'@typescript-eslint/no-explicit-any':
- error
- fixToUnknown: false
ignoreRestArgs: false
'@typescript-eslint/no-shadow': error
'@typescript-eslint/no-use-before-define': error
camelcase: error
comma-dangle:
- error
- always-multiline
comma-style:
- error
- last
import/extensions:
- error
- never
import/no-unresolved: error
jsdoc/check-indentation: error
jsdoc/no-bad-blocks: error
jsdoc/require-description: error
jsdoc/require-file-overview: error
jsdoc/require-throws: error
jsx-quotes:
- error
- prefer-single
linebreak-style:
- error
- unix
max-lines:
- error
- 300
max-lines-per-function:
- warn
- max: 20
no-console: error
no-duplicate-imports: error
no-multi-spaces: error
no-shadow: error
no-template-curly-in-string: error
no-trailing-spaces: error
no-undef: error
no-use-before-define: warn
react-native/no-inline-styles: warn
react/jsx-filename-extension:
- error
- extensions:
- .ts
- .tsx
- .js
- .jsx
react/prop-types: error
sort-imports: warn
sort-keys:
- error
- asc
- caseSensitive: true
minKeys: 2
natural: true