Skip to content

Commit 5c323b9

Browse files
ESLint: Allow 'async' functions (#2968)
ATM, minimal supported Node.js version is 12 so we drop this restriction
1 parent 4f41355 commit 5c323b9

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

.eslintrc.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -325,13 +325,7 @@ rules:
325325
no-nested-ternary: off
326326
no-new-object: error
327327
no-plusplus: off
328-
no-restricted-syntax:
329-
- error
330-
- selector: 'FunctionDeclaration[async=true]'
331-
message: >
332-
async functions are not allowed inside package source code because
333-
older versions of NodeJS do not support them without additional
334-
runtime dependencies. Instead, use explicit Promises.
328+
no-restricted-syntax: off
335329
no-tabs: error
336330
no-ternary: off
337331
no-underscore-dangle: off # TODO
@@ -670,7 +664,6 @@ overrides:
670664
node/no-unpublished-import: [error, { allowModules: ['chai', 'mocha'] }]
671665
import/no-restricted-paths: off
672666
import/no-extraneous-dependencies: [error, { devDependencies: true }]
673-
no-restricted-syntax: off
674667
- files: 'integrationTests/*'
675668
rules:
676669
node/no-unpublished-require: off
@@ -691,7 +684,6 @@ overrides:
691684
import/no-commonjs: off
692685
no-console: off
693686
no-await-in-loop: off
694-
no-restricted-syntax: off
695687
- files: 'resources/**'
696688
rules:
697689
node/no-unpublished-import: off
@@ -704,5 +696,4 @@ overrides:
704696
import/no-nodejs-modules: off
705697
import/no-commonjs: off
706698
no-await-in-loop: off
707-
no-restricted-syntax: off
708699
no-console: off

0 commit comments

Comments
 (0)