-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
24 lines (21 loc) 路 634 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
module.exports = {
extends: 'airbnb-base',
env: {
jest: true
},
globals: {
BigInt: true,
},
rules: {
// https://github.com/airbnb/javascript/issues/1089
// https://stackoverflow.com/a/35637900/684957
// allow to add properties to arguments
'no-param-reassign': [2, { 'props': false }],
// https://eslint.org/docs/rules/no-plusplus
// allows unary operators ++ and -- in the afterthought (final expression) of a for loop.
'no-plusplus': [0, { 'allowForLoopAfterthoughts': true }],
'no-continue': [0],
// Allow for..of
'no-restricted-syntax': [0, 'ForOfStatement'],
}
};