/
.eslintrc.js
41 lines (41 loc) · 864 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
/* eslint max-len: [0] */
module.exports = {
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],
// override default options
'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]
}
};