-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
62 lines (61 loc) · 1.77 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
51
52
53
54
55
56
57
58
59
60
61
62
const DISABLED = 0
const WARN = 1
const ERROR = 2
module.exports = exports = {
extends: [
'eslint:recommended',
'airbnb-base'
],
env: {
browser: false,
jest: true
},
rules: {
'arrow-body-style': DISABLED,
'arrow-parens': [ERROR, 'always', {
requireForBlockBody: false
}],
'comma-dangle': DISABLED,
'curly': [ERROR, 'all'],
'import/first': DISABLED,
'import/no-named-as-default': DISABLED,
'import/prefer-default-export': DISABLED,
'import/order': [ERROR, 'always', {
'groups': [
'builtin', 'external', 'internal', 'parent', 'sibling', 'index'
],
'newlines-between': 'always'
}],
'indent': [ERROR, 4, {
SwitchCase: WARN,
MemberExpression: WARN,
ObjectExpression: WARN
}],
'max-len': [WARN, { code: 150 }],
'no-console': [WARN, { allow: ['warn', 'error'] }],
'no-debugger': WARN,
'no-multiple-empty-lines': [ERROR, {
max: 1,
maxBOF: 0
}],
'no-plusplus': [ERROR, { 'allowForLoopAfterthoughts': true }],
'no-self-compare': DISABLED,
'no-underscore-dangle': [ERROR, { 'allowAfterThis': true }],
'no-unused-vars': WARN,
'object-curly-newline': [ERROR, {
ObjectExpression: {
minProperties: 1
},
ObjectPattern: {
minProperties: 5
}
}],
'prefer-template': DISABLED,
'quote-props': [ERROR, 'as-needed', {
numbers: true
}],
'semi': [ERROR, 'never'],
'class-methods-use-this': DISABLED,
'no-empty-function': WARN,
}
}