Skip to content

Commit

Permalink
Turn off deprecated JS rule no-return-await
Browse files Browse the repository at this point in the history
  • Loading branch information
jattasNI committed Sep 19, 2024
1 parent d3cc2f7 commit 34674ae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/eslint-config-javascript/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,11 @@ module.exports = {
selector: 'CallExpression[callee.object.name=\'console\'][callee.property.name=/^(debug|info|time|timeEnd|trace)$/]',
message: 'Unexpected property on console object was called'
}],
/*
This rule is deprecated since ESLint 8.46.0 because returning an awaited value no longer generates an extra microtask.
https://eslint.org/docs/latest/rules/no-return-await
*/
'no-return-await': 'off',

/*
Disallow returning values from setters.
Expand Down

0 comments on commit 34674ae

Please sign in to comment.