-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslint.js
36 lines (36 loc) · 1.08 KB
/
.eslint.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
module.exports = {
root: true,
extends: [
'@react-native',
'eslint:recommended',
'plugin:eslint-plugin/recommended',
'plugin:@typescript-eslint/recommended',
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'functional'],
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
'@typescript-eslint/no-shadow': ['error'],
'no-shadow': 'off',
'no-undef': 'off',
'no-unreachable': ['error'],
'functional/no-promise-reject': ['warn'],
'functional/no-throw-statements': ['warn'],
},
},
{
files: ['__test__/**'],
plugins: ['jest'],
extends: ['plugin:jest/recommended'],
rules: { 'jest/prefer-expect-assertions': 'off' },
},
{
files: ['metro.config.js'],
rules: {
'@typescript-eslint/no-var-requires': 'off',
},
},
],
};