-
Notifications
You must be signed in to change notification settings - Fork 578
/
.eslintrc.js
44 lines (43 loc) · 1013 Bytes
/
.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
// Ignore checking the js file generated by ts
const buckets = ['dataIndex.js'];
const ignorePatterns = ['lib/common/utils/*.js'].concat(buckets.map(item => `lib/common/bucket/${item}`));
module.exports = {
ignorePatterns,
extends: ['airbnb', 'eslint-config-ali/typescript', 'prettier'],
parserOptions: {
ecmaFeatures: {
experimentalObjectRestSpread: true
}
},
env: {
browser: true,
node: true,
es6: true,
mocha: true,
jasmine: true,
jest: true
},
rules: {
indent: ['error', 2],
'no-underscore-dangle': [0],
'no-plusplus': [0],
'no-return-await': [0],
'no-param-reassign': [0],
'max-len': [
'warn',
120,
2,
{
ignoreUrls: true,
ignoreComments: false,
ignoreRegExpLiterals: true,
ignoreStrings: true,
ignoreTemplateLiterals: true
}
],
'no-buffer-constructor': [2],
'no-void': 'warn',
'comma-dangle': [0],
'import/prefer-default-export': [0]
}
};