Bump packages to fix linter
This commit is contained in:
parent
ed9506bbaf
commit
0a11e3fdd9
6063 changed files with 378752 additions and 306784 deletions
6
node_modules/eslint/lib/rules/no-self-assign.js
generated
vendored
6
node_modules/eslint/lib/rules/no-self-assign.js
generated
vendored
|
|
@ -124,13 +124,13 @@ function eachSelfAssignment(left, right, props, report) {
|
|||
// Rule Definition
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/** @type {import('../shared/types').Rule} */
|
||||
module.exports = {
|
||||
meta: {
|
||||
type: "problem",
|
||||
|
||||
docs: {
|
||||
description: "disallow assignments where both sides are exactly the same",
|
||||
category: "Best Practices",
|
||||
description: "Disallow assignments where both sides are exactly the same",
|
||||
recommended: true,
|
||||
url: "https://eslint.org/docs/rules/no-self-assign"
|
||||
},
|
||||
|
|
@ -174,7 +174,7 @@ module.exports = {
|
|||
|
||||
return {
|
||||
AssignmentExpression(node) {
|
||||
if (node.operator === "=") {
|
||||
if (["=", "&&=", "||=", "??="].includes(node.operator)) {
|
||||
eachSelfAssignment(node.left, node.right, props, report);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue