Skip to content

Turn off 'unicorn/no-nested-ternary'#111

Closed
yangmingshan wants to merge 3 commits intoprettier:masterfrom
yangmingshan:master
Closed

Turn off 'unicorn/no-nested-ternary'#111
yangmingshan wants to merge 3 commits intoprettier:masterfrom
yangmingshan:master

Conversation

@yangmingshan
Copy link
Copy Markdown

Fix #110

Copy link
Copy Markdown
Member

@lydell lydell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to update eslint-plugin-unicorn in package.json for the tests to pass

Comment thread unicorn.js
module.exports = {
rules: {
"unicorn/number-literal-case": "off"
"unicorn/number-literal-case": "off",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rules in these files are sort alphabetically :)

Suggested change
"unicorn/number-literal-case": "off",
"unicorn/no-nested-ternary": "off",

Comment thread unicorn.js
rules: {
"unicorn/number-literal-case": "off"
"unicorn/number-literal-case": "off",
"unicorn/no-nested-ternary": "off"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"unicorn/no-nested-ternary": "off"
"unicorn/number-literal-case": "off"

@yangmingshan
Copy link
Copy Markdown
Author

@lydell Updated. I just accidentally used a work account, so I force pushed. Sorry about that.

@lydell lydell closed this in 67bd0fa Oct 5, 2019
@lydell
Copy link
Copy Markdown
Member

lydell commented Oct 5, 2019

Thanks! It turned out easier to do it myself in the end, so that’s what I ended up doing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

'unicorn/no-nested-ternary' conflict with Prettier

2 participants