-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
50 lines (50 loc) · 1.35 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
module.exports = {
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module',
allowImportExportEverywhere: false,
codeFrame: false,
},
extends: ['airbnb-base', 'eslint:recommended'],
plugins: ['import', 'jest', 'prettier'],
env: {
node: true,
'jest/globals': true,
},
rules: {
'new-cap': 0,
'no-plusplus': 0,
'require-jsdoc': 2,
'valid-jsdoc': [
2,
{
requireParamDescription: false,
requireReturnDescription: false,
requireReturn: false,
},
],
'react/jsx-filename-extension': [0, { extensions: ['.js', '.jsx'] }],
'jsx-quotes': [2, 'prefer-single'],
'no-return-assign': [2, 'except-parens'],
'no-underscore-dangle': 0,
'max-len': 'off',
'import/prefer-default-export': 'off',
'no-console': 'off',
'no-await-in-loop': 0,
'arrow-body-style': 0,
'prefer-destructuring': [
'error',
{
array: false,
object: false,
},
{
enforceForRenamedProperties: false,
},
],
'prettier/prettier': [
'error',
{ singleQuote: true, trailingComma: 'all' },
],
},
};