From f19d9a8aa6705cdc4275971027d60c19f3051d71 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Mon, 23 Jan 2023 14:06:01 +0000 Subject: [PATCH] DEV: Add disable_ternary plugin to syntax tree (#28) --- .streerc | 2 +- Gemfile | 1 + Gemfile.lock | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.streerc b/.streerc index 0bc4379..cc0be49 100644 --- a/.streerc +++ b/.streerc @@ -1,2 +1,2 @@ --print-width=100 ---plugins=plugin/trailing_comma +--plugins=plugin/trailing_comma,disable_ternary diff --git a/Gemfile b/Gemfile index 31d8bf7..d5e805c 100644 --- a/Gemfile +++ b/Gemfile @@ -5,4 +5,5 @@ source "https://rubygems.org" group :development do gem "rubocop-discourse" gem "syntax_tree" + gem "syntax_tree-disable_ternary" end diff --git a/Gemfile.lock b/Gemfile.lock index 3b79e02..b79e576 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -30,6 +30,7 @@ GEM ruby-progressbar (1.11.0) syntax_tree (5.1.0) prettier_print (>= 1.2.0) + syntax_tree-disable_ternary (1.0.0) unicode-display_width (2.3.0) PLATFORMS @@ -43,6 +44,7 @@ PLATFORMS DEPENDENCIES rubocop-discourse syntax_tree + syntax_tree-disable_ternary BUNDLED WITH 2.3.10