-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
35 lines (33 loc) · 1.08 KB
/
.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
const typescriptEslintRecommended = require('@typescript-eslint/eslint-plugin/dist/configs/recommended.json');
const typescriptEslintPrettier = require('eslint-config-prettier/@typescript-eslint');
module.exports = {
extends: ['@react-native-community'],
overrides: [
{
files: ['*.ts', '*.tsx', 'example/*.js'],
rules: Object.assign(
typescriptEslintRecommended.rules,
typescriptEslintPrettier.rules,
{
'@typescript-eslint/explicit-member-accessibility': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'react-native/no-inline-styles': 'off'
},
),
},
{
files: ['example/*.js'],
plugins: ['react-hooks'],
rules: Object.assign(
{
'prettier/prettier': 'off',
"@typescript-eslint/no-var-requires": "off",
'react-native/no-inline-styles': 'off',
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
},
),
}
]
}