Skip to content

Commit 1997385

Browse files
Loosened Promise syntax for tests
1 parent c0b125b commit 1997385

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

.github/workflows/CI-CD.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
node:
3131
- 10
3232
- 12
33+
- 14
3334

3435
steps:
3536
- name: Checkout source

lib/javascript-test-rules.js

+14
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,18 @@ module.exports = {
1010
* @see https://eslint.org/docs/rules/no-empty-function
1111
*/
1212
"no-empty-function": "off",
13+
14+
/**
15+
* Ignore unnecessary `return await` statements
16+
*
17+
* @see https://eslint.org/docs/rules/no-return-await
18+
*/
19+
"no-return-await": "off",
20+
21+
/**
22+
* allow async functions without an `await` keyword
23+
*
24+
* @see https://eslint.org/docs/rules/require-await
25+
*/
26+
"require-await": "off",
1327
};

lib/typescript-test-rules.js

+14
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,18 @@ module.exports = {
1010
* @see https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-extraneous-class.md
1111
*/
1212
"@typescript-eslint/no-extraneous-class": "off",
13+
14+
/**
15+
* Allow async functions without an `await` keyword
16+
*
17+
* @see https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/require-await.md
18+
*/
19+
"@typescript-eslint/require-await": "off",
20+
21+
/**
22+
* Ignore unnecessary `return await` statements
23+
*
24+
* @see https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/return-await.md
25+
*/
26+
"@typescript-eslint/return-await": "off",
1327
};

0 commit comments

Comments
 (0)