-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
38 lines (38 loc) · 1.05 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
36
37
38
module.exports = {
root: true,
extends: '@react-native-community',
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
'@typescript-eslint/no-shadow': ['error'],
'no-shadow': 'off',
'no-undef': 'off',
'prettier/prettier': 'off',
'jsx-quotes': 'off',
'no-restricted-syntax': [
'error',
{
selector: 'FunctionExpression',
message: 'Function expressions are not allowed.',
},
{
selector:
"CallExpression[callee.name='setTimeout'][arguments.length!=2]",
message: 'setTimeout must always be invoked with two arguments.',
},
],
'comma-dangle': 'off',
'space-infix-ops': 'off',
'keyword-spacing': 'off',
'allowTemplateLiterals': false,
'no-unused-vars': [
'off',
{vars: 'all', args: 'after-used', ignoreRestSiblings: false},
],
},
},
],
};