-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
45 lines (44 loc) · 1.17 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
module.exports = {
extends: [
'airbnb-base',
'plugin:jest-formatting/recommended',
'plugin:jest/style',
'plugin:jest/all',
],
plugins: ['jest', 'jsdoc'],
env: { jest: true },
rules: {
'import/no-extraneous-dependencies': 'off',
'array-bracket-spacing': 'off',
'arrow-parens': ['warn', 'as-needed'],
'comma-dangle': ['error', 'always-multiline'],
'consistent-return': 'off',
indent: ['error', 2, { SwitchCase: 1 }],
'linebreak-style': ['error', 'unix'],
'object-curly-newline': 'off',
'padded-blocks': ['warn', { classes: 'always' }],
quotes: ['warn', 'single', { avoidEscape: true }],
semi: ['warn', 'never'],
'space-before-function-paren': [
'warn',
{
anonymous: 'always',
named: 'ignore',
asyncArrow: 'always',
},
],
'no-underscore-dangle': 'off',
// jest rules (all are enabled by default via the extends section above)
'jest/no-hooks': 'off',
'jest/require-hook': 'off',
'jest/consistent-test-it': 'warn',
'jest/prefer-expect-assertions': 'off',
},
settings: {
'import/resolver': {
node: {
paths: ['src'],
},
},
},
}