Skip to content

Commit 537ef66

Browse files
pvdlgsindresorhus
authored andcommitted
Disable no-nested-ternary when Prettier is used (#402)
1 parent 4f761fd commit 537ef66

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/options-manager.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,8 @@ const buildConfig = options => {
304304
if (options.prettier) {
305305
// Disable formatting rules conflicting with Prettier
306306
config.rules['unicorn/number-literal-case'] = 'off';
307+
// Can be re-enabled when https://github.com/prettier/prettier/issues/4157 is fixed
308+
config.rules['unicorn/no-nested-ternary'] = 'off';
307309
// The prettier plugin uses Prettier to format the code with `--fix`
308310
config.plugins = config.plugins.concat('prettier');
309311
// The prettier config overrides ESLint stylistic rules that are handled by Prettier

0 commit comments

Comments
 (0)