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-unneeded-ternary.js
generated
vendored
6
node_modules/eslint/lib/rules/no-unneeded-ternary.js
generated
vendored
|
|
@ -23,13 +23,13 @@ const OR_PRECEDENCE = astUtils.getPrecedence({ type: "LogicalExpression", operat
|
|||
// Rule Definition
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/** @type {import('../shared/types').Rule} */
|
||||
module.exports = {
|
||||
meta: {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "disallow ternary operators when simpler alternatives exist",
|
||||
category: "Stylistic Issues",
|
||||
description: "Disallow ternary operators when simpler alternatives exist",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/no-unneeded-ternary"
|
||||
},
|
||||
|
|
@ -144,7 +144,7 @@ module.exports = {
|
|||
context.report({
|
||||
node,
|
||||
messageId: "unnecessaryConditionalAssignment",
|
||||
fix: fixer => {
|
||||
fix(fixer) {
|
||||
const shouldParenthesizeAlternate =
|
||||
(
|
||||
astUtils.getPrecedence(node.alternate) < OR_PRECEDENCE ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue