-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
23 lines (20 loc) · 610 Bytes
/
.eslintrc.js
File metadata and controls
23 lines (20 loc) · 610 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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': [2, { 'allowForLoopAfterthoughts': true }],
// Allow for..of
'no-restricted-syntax': [0, 'ForOfStatement'],
}
};