Bump packages to fix linter
This commit is contained in:
parent
ed9506bbaf
commit
0a11e3fdd9
6063 changed files with 378752 additions and 306784 deletions
8
node_modules/eslint/lib/rules/no-loop-func.js
generated
vendored
8
node_modules/eslint/lib/rules/no-loop-func.js
generated
vendored
|
|
@ -125,7 +125,7 @@ function isSafe(loopNode, reference) {
|
|||
* The reference is every reference of the upper scope's variable we are
|
||||
* looking now.
|
||||
*
|
||||
* It's safeafe if the reference matches one of the following condition.
|
||||
* It's safe if the reference matches one of the following condition.
|
||||
* - is readonly.
|
||||
* - doesn't exist inside a local function and after the border.
|
||||
* @param {eslint-scope.Reference} upperRef A reference to check.
|
||||
|
|
@ -148,13 +148,13 @@ function isSafe(loopNode, reference) {
|
|||
// Rule Definition
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/** @type {import('../shared/types').Rule} */
|
||||
module.exports = {
|
||||
meta: {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "disallow function declarations that contain unsafe references inside loop statements",
|
||||
category: "Best Practices",
|
||||
description: "Disallow function declarations that contain unsafe references inside loop statements",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/no-loop-func"
|
||||
},
|
||||
|
|
@ -174,7 +174,7 @@ module.exports = {
|
|||
* - has a loop node in ancestors.
|
||||
* - has any references which refers to an unsafe variable.
|
||||
* @param {ASTNode} node The AST node to check.
|
||||
* @returns {boolean} Whether or not the node is within a loop.
|
||||
* @returns {void}
|
||||
*/
|
||||
function checkForLoops(node) {
|
||||
const loopNode = getContainingLoopNode(node);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue