-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.js
51 lines (51 loc) · 1.22 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
module.exports = {
env: {
es6: true,
node: true,
jest: true,
browser: true,
},
parser: '@babel/eslint-parser',
parserOptions: {
requireConfigFile: false,
},
extends: ['airbnb', 'prettier'],
plugins: ['babel', 'react', 'prettier'],
rules: {
semi: [2, 'never'],
'no-console': [
1,
{
allow: ['warn', 'error'],
},
],
curly: [1, 'all'],
'no-param-reassign': [
1,
{
props: false,
},
],
'import/prefer-default-export': 0,
'no-multiple-empty-lines': [1, { max: 1, maxEOF: 0, maxBOF: 0 }],
'padding-line-between-statements': [
'error',
{ blankLine: 'always', prev: '*', next: 'return' },
{ blankLine: 'always', prev: 'import', next: '*' },
{ blankLine: 'never', prev: 'import', next: 'import' },
],
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
'prettier/prettier': [
'error',
{
bracketSpacing: true,
printWidth: 100,
semi: false,
singleQuote: true,
trailingComma: 'es5',
},
],
'sort-imports': ['warn', { ignoreDeclarationSort: true, ignoreMemberSort: false }],
},
reportUnusedDisableDirectives: true,
}