-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
128 lines (126 loc) · 2.52 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
module.exports = {
extends: [
'eslint-config-airbnb-base',
'eslint-config-airbnb-base/rules/strict',
].map(require.resolve),
parser: 'babel-eslint',
plugins: [
'flowtype',
],
rules: {
'arrow-parens': [
2,
'always'
],
'class-methods-use-this': 1,
'comma-dangle': [
'error',
{
arrays: 'only-multiline',
objects: 'only-multiline',
imports: 'never',
exports: 'never',
functions: 'never'
}
],
'consistent-return': [
'error',
{
treatUndefinedAsUnspecified: true
}
],
'flowtype/define-flow-type': 1,
'flowtype/use-flow-type': 1,
'func-names': 0,
'import/extensions': 0,
'import/no-duplicates': 2,
'import/no-cycle': 1,
'import/no-extraneous-dependencies': 0,
'import/no-unresolved': 0,
'import/prefer-default-export': 0,
'lines-around-comment': [
'error',
{
beforeBlockComment: true,
allowBlockStart: true,
allowClassStart: true,
allowClassEnd: true,
allowObjectStart: true,
allowObjectEnd: true,
allowArrayStart: true,
allowArrayEnd: true
}
],
'lines-between-class-members': [
'error',
'always',
{
exceptAfterSingleLine: true
}
],
'max-len': [
2,
{
code: 120,
ignoreComments: true
}
],
'no-await-in-loop': 1,
'no-console': [
1,
{
allow: [
'warn',
'error',
'trace'
]
}
],
'no-continue': 0,
'no-duplicate-imports': 1,
'no-multi-spaces': [
'error',
{
ignoreEOLComments: true
}
],
'no-multiple-empty-lines': [
'error',
{
max: 1
}
],
'no-param-reassign': 0,
'no-prototype-builtins': 0,
'no-restricted-syntax': [
'error',
'ForInStatement',
'LabeledStatement',
'WithStatement'
],
'no-underscore-dangle': 0,
'prefer-const': 0,
'prefer-destructuring': 1,
'prefer-template': 2,
radix: 0,
'require-yield': 1,
'space-before-function-paren': [
'error',
{
anonymous: 'always',
named: 'never',
asyncArrow: 'always'
}
],
'spaced-comment': [
0,
'always'
],
strict: 'error'
}
};
// let rules = {};
// for (let key of Object.keys(module.exports.rules).sort()) {
// rules[key] = module.exports.rules[key];
// }
// console.log(JSON.stringify(rules, null, 2));