-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
84 lines (84 loc) · 2.29 KB
/
index.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
module.exports = {
extends: [
'airbnb',
'plugin:prettier/recommended',
'prettier',
'prettier/react',
],
plugins: ['react', 'react-hooks', 'react-native', 'prettier'],
env: {
es2021: true,
},
rules: {
'prettier/prettier': [
'error',
{
singleQuote: true,
semi: true,
useTabs: false,
trailingComma: 'all',
arrowParen: 'always',
},
],
'import/no-dynamic-require': 'off',
'import/no-extraneous-dependencies': 'off',
'import/prefer-default-export': 'off',
'react/destructuring-assignment': 'off',
'react/jsx-boolean-value': 'off',
'react/jsx-filename-extension': 'off',
'react/jsx-no-bind': 'error',
'react/jsx-props-no-spreading': 'off',
'react/no-array-index-key': 'warn',
'react/no-unused-prop-types': 'off',
'react/no-unused-state': 'off',
'react/prefer-stateless-function': [
'off',
{
ignorePureComponents: true,
},
],
'react/prop-types': 'off',
'react/require-default-props': 'off',
'react/state-in-constructor': ['error', 'never'],
'react-hooks/exhaustive-deps': 'warn',
'react-hooks/rules-of-hooks': 'error',
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/html-has-lang': 'off',
'jsx-a11y/no-noninteractive-element-interactions': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'react-native/no-inline-styles': 'warn',
'react-native/no-single-element-style-arrays': 'warn',
'react-native/no-unused-styles': 'warn',
'arrow-parens': 'off',
'camelcase': 'off',
'consistent-return': 'off',
'global-require': 'off',
'new-cap': 'off',
'no-case-declarations': 'off',
'no-console': [
'error',
{
allow: ['warn', 'error'],
},
],
'no-continue': 'error',
'no-debugger': 'error',
'no-extra-boolean-cast': 'off',
'no-fallthrough': 'off',
'no-nested-ternary': 'off',
'no-param-reassign': 'off',
'no-plusplus': 'off',
'no-restricted-syntax': 'off',
'no-underscore-dangle': 'off',
'no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
'no-use-before-define': 'off',
'no-useless-escape': 'off',
'prefer-destructuring': 'off',
},
};