-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
48 lines (44 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
39
40
41
42
43
44
45
46
47
48
module.exports = {
extends: [
'airbnb',
'plugin:flowtype/recommended',
'prettier',
'prettier/flowtype',
'prettier/react',
],
parser: 'babel-eslint',
plugins: ['flowtype', 'prettier'],
env: {
es6: true,
},
rules: {
// The eslint import resolver doesn't work well with module aliases
// so use Flow to report on any missing imports instead
'import/no-unresolved': 0,
// This eslint rule causes issues with components called `Link`
// within React Native
'jsx-a11y/anchor-is-valid': 0,
// This is disabled to allow styles to be defined at the end of files
'no-use-before-define': 0,
'prettier/prettier': [
'error',
{
trailingComma: 'es5',
singleQuote: true,
},
],
'react/jsx-filename-extension': ['warn', { extensions: ['.js', '.jsx'] }],
'react/sort-comp': [
2,
{
order: [
'static-methods',
'type-annotations',
'lifecycle',
'render',
'everything-else',
],
},
],
},
};