-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
32 lines (32 loc) · 971 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
module.exports = {
root: true,
extends: ['@react-native-community', 'plugin:prettier/recommended'],
parser: '@babel/eslint-parser',
parserOptions: {
requireConfigFile: false,
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
rules: {
'no-console': 'warn',
'prettier/prettier': 'off',
'react-hooks/exhaustive-deps': 'off',
quotes: ['error', 'single'],
semi: ['error', 'always'],
curly: 'error',
indent: ['error', 4],
'linebreak-style': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'object-curly-spacing': ['error', 'always'],
'react/jsx-indent': ['error', 4],
'@typescript-eslint/no-explicit-any': 'off',
'react/react-in-jsx-scope': 'off',
'react/no-unstable-nested-components': ['off']
},
env: {
'react-native/react-native': true
}
};