summaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/lib/rules/padded-blocks.js
diff options
context:
space:
mode:
authorNode.js GitHub Bot <github-bot@iojs.org>2023-05-09 07:38:21 +0100
committerGitHub <noreply@github.com>2023-05-09 06:38:21 +0000
commitbf8dd3f293acc913016ff20196a07a8d90860d63 (patch)
tree83933a9ce097058a03cff1dc8d5709142b21bcd5 /tools/node_modules/eslint/lib/rules/padded-blocks.js
parent0b3fcfcf351fba9f29234976eeec4afb09ae2cc0 (diff)
downloadnode-new-bf8dd3f293acc913016ff20196a07a8d90860d63.tar.gz
tools: update eslint to 8.40.0
PR-URL: https://github.com/nodejs/node/pull/47906 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'tools/node_modules/eslint/lib/rules/padded-blocks.js')
-rw-r--r--tools/node_modules/eslint/lib/rules/padded-blocks.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/node_modules/eslint/lib/rules/padded-blocks.js b/tools/node_modules/eslint/lib/rules/padded-blocks.js
index bc194283de..c6d1372ac7 100644
--- a/tools/node_modules/eslint/lib/rules/padded-blocks.js
+++ b/tools/node_modules/eslint/lib/rules/padded-blocks.js
@@ -23,7 +23,7 @@ module.exports = {
docs: {
description: "Require or disallow padding within blocks",
recommended: false,
- url: "https://eslint.org/docs/rules/padded-blocks"
+ url: "https://eslint.org/docs/latest/rules/padded-blocks"
},
fixable: "whitespace",
@@ -96,7 +96,7 @@ module.exports = {
options.allowSingleLineBlocks = exceptOptions.allowSingleLineBlocks === true;
}
- const sourceCode = context.getSourceCode();
+ const sourceCode = context.sourceCode;
/**
* Gets the open brace token from a given node.