-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy path.eslintrc.js
38 lines (38 loc) · 925 Bytes
/
.eslintrc.js
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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'react',
'react-hooks',
'@typescript-eslint',
'@react-native',
'react-native',
'local-rules',
],
extends: [
'eslint:recommended',
'@react-native',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
'plugin:react-native/all',
'prettier',
],
env: {
'react-native/react-native': true,
},
settings: {
react: {
version: 'detect',
},
},
rules: {
'dot-notation': ['off', {allowPattern: '^translations$'}],
'react-native/sort-styles': 'off',
'react-native/no-color-literals': 'off',
'@typescript-eslint/no-unused-vars': ['error'],
'@typescript-eslint/no-explicit-any': ['warn'],
'react-hooks/exhaustive-deps': 'off',
'local-rules/exhaustive-deps': 'warn',
'react/no-unstable-nested-components': 'off',
},
};