-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.js
50 lines (50 loc) · 1.2 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
module.exports = {
env: {
'jest/globals': true,
browser: true,
},
extends: [
'eslint-config-airbnb',
'eslint-config-prettier',
'eslint-config-prettier/react',
].map(require.resolve),
parser: 'babel-eslint',
plugins: ['jest', 'prettier'],
rules: {
'arrow-body-style': 0,
'arrow-parens': ['error', 'as-needed'],
camelcase: ['error'],
'no-prototype-builtins': 0,
'import/prefer-default-export': 0,
'import/no-named-default': 0,
'import/first': 0,
'import/no-unresolved': 0,
'import/no-extraneous-dependencies': 0,
'no-underscore-dangle': [2, { allowAfterThis: true }],
semi: [2, 'never'],
'react/jsx-no-bind': 0,
'react/prefer-stateless-function': 0,
'react/sort-comp': 0,
'react/jsx-filename-extension': 0,
'jest/no-disabled-tests': 'error',
'jest/no-focused-tests': 'error',
'jest/no-identical-title': 'error',
'jest/valid-expect': 'error',
'prettier/prettier': [
'error',
{
printWidth: 80,
singleQuote: true,
semi: false,
trailingComma: 'es5',
},
],
'no-multiple-empty-lines': [
'error',
{
max: 1,
maxEOF: 0,
},
],
},
}