Skip to content

Commit

Permalink
Disable no-nested-ternary when Prettier is used (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdlg authored and sindresorhus committed Sep 26, 2019
1 parent 4f761fd commit 537ef66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/options-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ const buildConfig = options => {
if (options.prettier) {
// Disable formatting rules conflicting with Prettier
config.rules['unicorn/number-literal-case'] = 'off';
// Can be re-enabled when https://github.com/prettier/prettier/issues/4157 is fixed
config.rules['unicorn/no-nested-ternary'] = 'off';
// The prettier plugin uses Prettier to format the code with `--fix`
config.plugins = config.plugins.concat('prettier');
// The prettier config overrides ESLint stylistic rules that are handled by Prettier
Expand Down

0 comments on commit 537ef66

Please sign in to comment.