-
Notifications
You must be signed in to change notification settings - Fork 1
/
es5.js
26 lines (26 loc) · 895 Bytes
/
es5.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
module.exports = {
extends: [
'eslint-config-airbnb-base/rules/best-practices',
'eslint-config-airbnb-base/rules/errors',
'eslint-config-airbnb-base/rules/node',
'eslint-config-airbnb-base/rules/style',
'eslint-config-airbnb-base/rules/variables',
'eslint-config-airbnb-base/rules/imports',
].map(require.resolve),
rules: {
'comma-dangle': 'off',
indent: ['error', 4],
'no-param-reassign': ['error', { 'props': false }],
'no-restricted-syntax': ['error', 'ForInStatement', 'LabeledStatement', 'WithStatement'],
'no-return-await': ['warn'],
'max-len': ['warn', {
'code': 160,
'ignoreUrls': true,
'ignoreComments': false,
'ignoreRegExpLiterals': true,
'ignoreStrings': true,
'ignoreTemplateLiterals': true,
'ignoreTrailingComments': true
}],
}
};