-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
52 lines (45 loc) · 1.51 KB
/
.eslintrc.json
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
45
46
47
48
49
50
51
52
{
"env": {
// "browser": true,
// "es6": true,
// "node": true,
"mocha": true
},
"extends": ["airbnb-base", "plugin:jsdoc/recommended", "prettier"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"import/prefer-default-export": 0,
"max-classes-per-file": 0,
"jsdoc/require-param-description": 0,
"jsdoc/require-returns-description": 0,
"no-unused-vars": ["error", { "args": "after-used" }],
// Allow for-of loops as they are efficient and readable.
"no-restricted-syntax": 0,
// for-loops that await on async operations are the
// most readable way to run async operations in series.
"no-await-in-loop": 0,
// Some classes that extend and overrides methods in a base class
// do not need to reference "this".
"class-methods-use-this": 0,
// We may way to enable this at a later stage, but currently
// we rely too much on console output, not streams.
"no-console": 0,
// Personal preference
"no-plusplus": 0,
// In most cases it's fine to leave out return statement if a
// function is supposed to return undefined in some situations
"consistent-return": 0,
// Chai and Yargs, among others, breaks this rule. With Chai
// it wrongly detects `expect(foo).to.be.true` to be an unused
// expression as it does not end with a function call.
"no-unused-expressions": 0
},
"plugins": ["jsdoc"]
}