-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.js
66 lines (65 loc) · 1.56 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
module.exports = {
extends: 'airbnb',
parser: '@babel/eslint-parser',
parserOptions: {
ecmaVersion: 2021,
sourceType: 'module',
requireConfigFile: false,
ecmaFeatures: {
experimentalObjectRestSpread: true,
impliedStrict: true,
globalReturn: false,
jsx: true,
},
},
rules: {
'comma-dangle': 1,
'no-param-reassign': [1, { props: false }],
'arrow-parens': 0,
'import/extensions': ['warn', 'ignorePackages'],
'import/no-unresolved': 'off',
'import/prefer-default-export': 'off',
'no-plusplus': 0,
'no-console': ['error', { allow: ['warn', 'error'] }],
'no-confusing-arrow': 0,
'import/no-extraneous-dependencies': 0,
'no-trailing-spaces': [2, { skipBlankLines: true }],
'react/forbid-prop-types': 0,
'no-unused-expressions': [1, { allowTernary: true }],
'max-len': [
2,
{
code: 120,
ignoreStrings: true,
ignoreTemplateLiterals: true,
},
],
'operator-linebreak': 0,
'implicit-arrow-linebreaks': 0,
/* React */
'react/require-extension': 'off',
'react/prefer-stateless-function': 'off',
'react/no-array-index-key': 0,
'react/destructuring-assignment': 0,
'react/require-default-props': 0,
'react/self-closing-comp': [2, {
component: true,
html: false,
}],
},
globals: {
$: true,
document: true,
window: true,
navigator: true,
localStorage: true,
jQuery: true,
location: true,
fetch: true,
Event: true,
Invoca: true,
},
env: {
jest: true,
},
};