forked from Yuneko-dev/lnreader-extended
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
30 lines (30 loc) · 883 Bytes
/
.eslintrc.js
File metadata and controls
30 lines (30 loc) · 883 Bytes
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
module.exports = {
root: true,
extends: ['@react-native'],
overrides: [
{
// Test files only
plugins: ['jest'],
files: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)'],
extends: ['plugin:testing-library/react', 'plugin:jest/recommended'],
},
{
files: ['*.js', '*.jsx', '*.ts', '*.tsx'],
rules: {
'no-shadow': 'off',
'no-undef': 'off',
'no-console': 'warn',
'@typescript-eslint/no-shadow': 'warn',
'react-hooks/exhaustive-deps': 'warn',
'curly': ['error', 'multi-line', 'consistent'],
'no-useless-return': 'error',
'block-scoped-var': 'error',
'no-var': 'error',
'prefer-const': 'error',
'no-dupe-else-if': 'error',
'no-duplicate-imports': 'error',
'@react-native/no-deep-imports': 0,
},
},
],
};