This repository has been archived by the owner on Sep 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
88 lines (88 loc) · 2.09 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
module.exports = {
extends: [
'airbnb',
'plugin:react/recommended',
'plugin:prettier/recommended',
'prettier/react',
],
parser: 'babel-eslint',
plugins: [
'import',
'jsx-a11y',
'babel',
'prettier',
'jest',
'react',
'react-native',
],
rules: {
'prettier/prettier': [
'error',
{
singleQuote: true,
trailingComma: 'es5',
arrowParens: 'always',
bracketSpacing: true,
printWidth: 80,
semi: true,
},
],
'react/jsx-filename-extension': 0,
'react/jsx-handler-names': 2,
'react/jsx-curly-brace-presence': 0,
'react/prefer-stateless-function': [2, { ignorePureComponents: true }],
'react/require-default-props': 0,
'react/prop-types': ['error', { ignore: ['navigation'] }],
'react-native/split-platform-components': 2,
'react-native/no-unused-styles': 2,
'react-native/no-inline-styles': 2,
'react-native/no-color-literals': 2,
'import/no-extraneous-dependencies': 0,
'import/no-named-as-default': 0,
'import/no-named-as-default-member': 2,
'import/prefer-default-export': 2,
'import/no-absolute-path': 0,
'import/order': [
'error',
{
groups: [
'builtin',
'external',
'internal',
'parent',
'sibling',
'index',
],
'newlines-between': 'ignore', // off until https://github.com/benmosher/eslint-plugin-import/issues/512 is fixed
},
],
'jsx-a11y/anchor-is-valid': 0,
'jsx-a11y/media-has-caption': 0,
'react-native/no-unused-styles': 0,
'react/destructuring-assignment': 0,
'global-require': 0,
'import/no-cycle': 0,
'function-paren-newline': 0,
'no-underscore-dangle': 0,
},
parserOptions: {
ecmaVersion: 7,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.android.js', '.ios.js'],
},
'babel-module': {},
},
},
env: {
browser: true,
node: true,
'jest/globals': true,
},
};