-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
49 lines (49 loc) · 1.11 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
39
40
41
42
43
44
45
46
47
48
49
module.exports = {
env: {
jest: true,
browser: true,
'react-native/react-native': true,
},
parser: '@typescript-eslint/parser',
plugins: ['react', 'react-native', 'prettier'],
extends: [
'@react-native-community',
'standard',
'standard-react',
'prettier',
'prettier/react',
],
parserOptions: {
sourceType: 'module',
allowImportExportEverywhere: false,
codeFrame: false,
},
globals: {
__DEV__: true,
},
rules: {
'node/no-deprecated-api': 'off',
'quote-props': ['error', 'consistent'],
'react-native/no-unused-styles': 1,
'no-unused-expressions': 0,
'no-multi-str': 0,
'react-native/no-inline-styles': 2,
'react-native/no-color-literals': 2,
'prettier/prettier': 'error',
'react/jsx-handler-names': 0,
'space-before-function-paren': [
'error',
{
anonymous: 'never',
named: 'never',
asyncArrow: 'always',
},
],
camelcase: ['off'],
'react/prop-types': [
'error',
{ ignore: ['navigation', 'screenProps'], skipUndeclared: true },
],
},
};
© 2020 GitHub, In