-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
35 lines (35 loc) · 1011 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
33
34
35
module.exports = {
root: true,
extends: [
'@react-native-community',
'airbnb-typescript',
'prettier',
'prettier/@typescript-eslint',
'prettier/react',
],
parserOptions: {
project: './tsconfig.json',
},
rules: {
'react-native/no-inline-styles': 'error',
'no-use-before-define': 'off',
'operator-assignment': 'off',
'no-console': 'off',
'no-unused-vars': 'error',
'import/prefer-default-export': 'off',
'no-use-before-define': 'off',
'global-require': 'off',
'no-await-in-loop': 'warn',
'no-param-reassign': 'warn',
'no-underscore-dangle': 'off',
'no-empty': 'warn',
'react-hooks/exhaustive-deps': 'warn',
'no-unused-expressions': ['error', { allowShortCircuit: true, allowTernary: true }],
'no-plusplus': 'off',
'@typescript-eslint/camelcase': 'warn',
radix: 'warn',
'import/no-unresolved': 'warn',
'@typescript-eslint/no-use-before-define': 'off',
'react/jsx-props-no-spreading': 'warn'
},
};