forked from netguru/sticky-parallax-header
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
73 lines (73 loc) · 1.97 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
module.exports = {
root: true,
parser: 'babel-eslint',
extends: ['prettier', 'airbnb'],
plugins: ['react', 'react-native', 'jsx-a11y', 'import', 'prettier'],
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
moduleDirectory: ['node_modules', 'app'],
},
},
},
env: {
jest: true,
},
rules: {
'react/jsx-filename-extension': [2, { extensions: ['.js'] }],
'react/prop-types': ['error', { ignore: ['navigation', 't', 'i18n'] }],
'react/jsx-closing-bracket-location': 0,
'react/jsx-no-bind': 0,
'react/destructuring-assignment': 'warn',
'react/jsx-wrap-multilines': 0,
'react/require-default-props': 0,
'react/prefer-stateless-function': 0,
'react/jsx-props-no-spreading': 0,
'react-native/no-unused-styles': 2,
'react-native/split-platform-components': 2,
'react-native/no-inline-styles': 2,
'react-native/no-color-literals': 0,
'import/prefer-default-export': 0,
'import/no-cycle': [1, { maxDepth: 1 }],
'import/no-unresolved': ['error', { ignore: ['react', 'react-native'] }],
'import/no-extraneous-dependencies': ['error', { packageDir: './' }],
'no-unused-vars': [2, { argsIgnorePattern: '^_' }],
'no-underscore-dangle': 0,
'max-len': [1, 100],
'operator-assignment': 'warn',
'global-require': 0,
'implicit-arrow-linebreak': 0,
'prettier/prettier': [
'warn',
{},
{
usePrettierrc: true,
},
],
'no-multiple-empty-lines': [
'error',
{
max: 1,
maxEOF: 0,
maxBOF: 0,
},
],
'operator-linebreak': 0,
'comma-dangle': 0,
'no-useless-constructor': 0,
'object-curly-newline': 0,
'prefer-promise-reject-errors': 0,
'newline-before-return': 'error',
indent: 0,
},
globals: {
fetch: false,
shallow: true,
mount: true,
render: true,
navigator: true,
__DEV__: true,
requestAnimationFrame: true,
},
};