Skip to content

Commit

Permalink
allow nested-ternary
Browse files Browse the repository at this point in the history
  • Loading branch information
rikinsk committed Jan 8, 2020
1 parent b33101b commit 2b59068
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion console/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@
"jsx-a11y/alt-text": 0,
"jsx-a11y/no-autofocus": 0,
"max-len": 0,
"no-continue": 0
"no-continue": 0,
"no-nested-ternary": 0
},
"plugins": [
"react", "import", "cypress"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ const CheckConstraints = ({
};

// expand button text "View"
// eslint-disable-next-line no-nested-ternary
const expandButtonText = isLast
? constraints.length
? 'Add a new check constraint'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ const ComputedFieldsEditor = ({
};

// expand button text "View"
// eslint-disable-next-line no-nested-ternary
const expandButtonText = isLast
? computedFields.length
? 'Add a new computed field'
Expand Down

0 comments on commit 2b59068

Please sign in to comment.