-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
executable file
·65 lines (65 loc) · 1.71 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
module.exports = {
root: true,
extends: [
'@react-native-community',
'airbnb',
'prettier',
'eslint:recommended',
],
env: {
browser: true,
},
plugins: ['prettier', 'unused-imports', 'import'],
rules: {
'import/no-unresolved': [2, {commonjs: true, amd: true}],
'import/named': 2,
'import/namespace': 2,
'import/default': 2,
'import/export': 2,
'import/order': [
'error',
{
pathGroups: [
{
pattern: '@react-native-firebase/**',
group: 'external',
position: 'after',
},
{
pattern: '@react-native-community/**',
group: 'external',
position: 'after',
},
],
pathGroupsExcludedImportTypes: ['builtin'],
'newlines-between': 'always',
},
],
'prettier/prettier': ['error'],
'react/jsx-filename-extension': [1, {extensions: ['.js', '.jsx']}],
'no-console': 1,
'no-use-before-define': ['error', {variables: false}],
'react/no-array-index-key': 0,
'react/prop-types': 0,
'consistent-return': 0,
'global-require': 0,
'require-await': 2,
'max-lines': [
'error',
{max: 250, skipBlankLines: true, skipComments: true},
],
'react-native/no-inline-styles': 0,
'react-native/no-color-literals': 0,
'padding-line-between-statements': [
'error',
{blankLine: 'always', prev: ['const', 'let', 'var'], next: '*'},
{
blankLine: 'any',
prev: ['const', 'let', 'var'],
next: ['const', 'let', 'var'],
},
],
'unused-imports/no-unused-imports': 2,
'space-before-blocks': ['error', {functions: 'never', keywords: 'always'}],
},
};