-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
49 lines (49 loc) · 1.08 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
module.exports = {
parser: 'babel-eslint',
extends: [
'airbnb-base',
'prettier'
],
globals: { fetch: false },
env: {
browser: false,
es6: true,
jest: false
},
settings: {
'import/resolver': {
'babel-module': {}
}
},
plugins: ['prettier'],
rules: {
'class-methods-use-this': 0,
'eol-last': 0,
'max-len': [2, 80, 2],
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: true,
optionalDependencies: false,
peerDependencies: false
}
],
'import/prefer-default-export': 0,
'no-trailing-spaces': ['error', { skipBlankLines: true }],
'no-underscore-dangle': 0,
'no-param-reassign': 0,
'no-debugger': 1,
'indent': [
'error',
2
],
'arrow-parens': [0],
'function-paren-newline': [0],
'implicit-arrow-linebreak': 'off',
'no-use-before-define': [
'error',
{ functions: false }
],
'prettier/prettier': 'error',
}
}