Skip to content

Commit

Permalink
use recommended backwards-compatible calls
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcC399 committed Apr 26, 2024
1 parent d3d333a commit 534db69
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/rules/no-async-before.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
&& node.arguments.length >= 2
&& node.arguments[1].async === true
}
const { sourceCode = { } } = context
const sourceCode = context.sourceCode ?? context.getSourceCode()

return {
Identifier (node) {
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-async-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = {
&& node.arguments.length >= 2
&& node.arguments[1].async === true
}
const { sourceCode = { } } = context
const sourceCode = context.sourceCode ?? context.getSourceCode()

return {
Identifier (node) {
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-unnecessary-waiting.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
},
},
create (context) {
const { sourceCode = { } } = context
const sourceCode = context.sourceCode ?? context.getSourceCode()

return {
CallExpression (node) {
Expand Down

0 comments on commit 534db69

Please sign in to comment.