forked from commaai/connect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
44 lines (44 loc) · 888 Bytes
/
.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
module.exports = {
extends: [
'react-app',
'airbnb',
'airbnb/hooks',
],
rules: {
'import/prefer-default-export': 0,
'import/no-named-as-default': 0,
'react/destructuring-assignment': 'warn',
'react/jsx-curly-spacing': 0,
'react/jsx-filename-extension': 0,
'react/forbid-prop-types': 0,
'react/function-component-definition': [
'error',
{
namedComponents: 'arrow-function',
},
],
'react/prop-types': 0,
'react/require-default-props': 0,
'no-await-in-loop': 'warn',
'no-plusplus': [
'error',
{
allowForLoopAfterthoughts: true,
},
],
'no-underscore-dangle': 0,
'no-param-reassign': 0,
'object-curly-newline': [
'error',
{
consistent: true,
},
],
},
env: {
browser: true,
},
globals: {
gtag: 'readonly',
},
};