-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
.eslintrc.js
33 lines (32 loc) · 940 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
// Copyright IBM Corp. and LoopBack contributors 2019,2020. All Rights Reserved.
// Node module: loopback-next
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
module.exports = {
extends: [
'./packages/eslint-config/eslintrc.js',
'plugin:prettier/recommended',
],
plugins: ['prettier'],
overrides: [
{
files: ['**/*.ts'],
rules: {
/*
* The mocha plugin reports the following signature as a violation of
* `mocha/handle-done-callback` (misinterpreting `this` as `done`).
*
* See https://github.com/lo1tuma/eslint-plugin-mocha/issues/270
*
* ```ts
* before(async function setupApplication(this: Mocha.Context) {
* this.timeout(6000);
* // ...
* }
* ```
*/
'mocha/handle-done-callback': 'off',
},
},
],
};