Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESLint: Allow 'async' functions #2968

Merged
merged 1 commit into from Mar 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 1 addition & 10 deletions .eslintrc.yml
Expand Up @@ -325,13 +325,7 @@ rules:
no-nested-ternary: off
no-new-object: error
no-plusplus: off
no-restricted-syntax:
- error
- selector: 'FunctionDeclaration[async=true]'
message: >
async functions are not allowed inside package source code because
older versions of NodeJS do not support them without additional
runtime dependencies. Instead, use explicit Promises.
no-restricted-syntax: off
no-tabs: error
no-ternary: off
no-underscore-dangle: off # TODO
Expand Down Expand Up @@ -670,7 +664,6 @@ overrides:
node/no-unpublished-import: [error, { allowModules: ['chai', 'mocha'] }]
import/no-restricted-paths: off
import/no-extraneous-dependencies: [error, { devDependencies: true }]
no-restricted-syntax: off
- files: 'integrationTests/*'
rules:
node/no-unpublished-require: off
Expand All @@ -691,7 +684,6 @@ overrides:
import/no-commonjs: off
no-console: off
no-await-in-loop: off
no-restricted-syntax: off
- files: 'resources/**'
rules:
node/no-unpublished-import: off
Expand All @@ -704,5 +696,4 @@ overrides:
import/no-nodejs-modules: off
import/no-commonjs: off
no-await-in-loop: off
no-restricted-syntax: off
no-console: off