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/yoda.js
generated
vendored
6
node_modules/eslint/lib/rules/yoda.js
generated
vendored
|
|
@ -39,7 +39,7 @@ function isEqualityOperator(operator) {
|
|||
* @returns {boolean} Whether the operator is used in range tests.
|
||||
*/
|
||||
function isRangeTestOperator(operator) {
|
||||
return ["<", "<="].indexOf(operator) >= 0;
|
||||
return ["<", "<="].includes(operator);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -115,13 +115,13 @@ function getNormalizedLiteral(node) {
|
|||
// Rule Definition
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/** @type {import('../shared/types').Rule} */
|
||||
module.exports = {
|
||||
meta: {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: 'require or disallow "Yoda" conditions',
|
||||
category: "Best Practices",
|
||||
description: 'Require or disallow "Yoda" conditions',
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/yoda"
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue