-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
104 lines (103 loc) · 3.1 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/**
* Created by nghinv on Thu Jun 11 2020
* Copyright (c) 2020 [email protected]
*/
module.exports = {
'extends': [
'airbnb',
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
],
'globals': {
'Atomics': 'readonly',
'fetch': false,
'SharedArrayBuffer': 'readonly',
'__DEV__': true,
'before': true,
'beforeEach': true,
'afterEach': true,
'after': true,
'device': true,
},
'plugins': [
"react",
],
'env': {
'jest': true,
},
'parser': 'babel-eslint',
'rules': {
'react/prefer-stateless-function': 'off',
'max-len': ["warn", { code: 400, tabWidth: 2 }],
'no-use-before-define': 'off',
'consistent-return': 'off',
'react/jsx-filename-extension': 'off',
'react/prop-types': 'off',
'comma-dangle': ['error', {
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'always-multiline',
}],
'no-console': 'off',
'no-unused-vars': 'off',
'import/no-unresolved': 'off',
'import/no-extraneous-dependencies': 'off',
'import/prefer-default-export': 'off',
'object-curly-newline': 'off',
'quotes': ["error", "single", { "allowTemplateLiterals": false }],
'react/no-did-update-set-state': "off",
'react/no-unused-state': 'off',
'react/no-deprecated': 'warn',
'react/sort-comp': 'off',
'react/forbid-prop-types': 'off',
'no-case-declarations': 'off',
"linebreak-style": 0,
"no-param-reassign": 0,
"no-underscore-dangle": 'off',
'no-await-in-loop': 'off',
'no-plusplus': 'off',
'import/no-named-as-default': 'off',
'class-methods-use-this': 'off',
'global-require': 'off',
'camelcase': 'off',
'react/jsx-props-no-spreading': 'off',
'react/static-property-placement': 'off',
'react/jsx-curly-newline': 'off',
'react/state-in-constructor': 'off',
'no-unused-expressions': 'off',
'jsx-quotes': 'off',
'arrow-body-style': 'off',
'no-restricted-syntax': 'off',
'guard-for-in': 'off',
'react/destructuring-assignment': 'off',
'no-nested-ternary': 'off',
'prefer-destructuring': ['error', {
'array': false,
'object': false
}, {
'enforceForRenamedProperties': false
}],
'radix': 'off',
'react/no-array-index-key': 'off',
'react/display-name': 'off',
'arrow-parens': 'off',
'no-extra-boolean-cast': 'off',
'eqeqeq': ['error', 'always'],
'react/no-access-state-in-setstate': 'off',
'no-multiple-empty-lines': ['error', { max: 1, maxEOF: 0 }],
'import/extensions': 'off',
'react/require-default-props': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/ban-types': 'off',
'array-callback-return': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-var-requires': 'off',
'react-hooks/rules-of-hooks': 'off',
}
};