From 714db9c66665133e599c6d494b7fb46fcaee1da1 Mon Sep 17 00:00:00 2001 From: Benjamin Streit Date: Fri, 16 Sep 2022 02:51:19 -0500 Subject: fix: Improving JSX and TSX indents (#3853) --- runtime/queries/jsx/indents.scm | 8 ++++++++ runtime/queries/tsx/indents.scm | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'runtime/queries') diff --git a/runtime/queries/jsx/indents.scm b/runtime/queries/jsx/indents.scm index 04328f09..6cb82545 100644 --- a/runtime/queries/jsx/indents.scm +++ b/runtime/queries/jsx/indents.scm @@ -1 +1,9 @@ +[ + (jsx_fragment) + (jsx_element) + (jsx_self_closing_element) +] @indent + +(parenthesized_expression) @indent + ; inherits: ecma diff --git a/runtime/queries/tsx/indents.scm b/runtime/queries/tsx/indents.scm index 1b61e36d..07391231 100644 --- a/runtime/queries/tsx/indents.scm +++ b/runtime/queries/tsx/indents.scm @@ -1 +1 @@ -; inherits: typescript +; inherits: typescript,jsx -- cgit v1.2.3-70-g09d2