From bc8e4cc4dc64429c20acf12cff882b394a3a4926 Mon Sep 17 00:00:00 2001 From: Sergey Krylov Date: Mon, 28 Sep 2026 12:34:58 +0300 Subject: [PATCH] style: pin ternary operator formatting #18 --- eslint.config.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eslint.config.mjs b/eslint.config.mjs index 7a83a52..f2acd08 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -48,7 +48,9 @@ export default defineConfig( }], // Keep text/interpolation together: splitting can change rendered whitespace. "@stylistic/jsx-one-expression-per-line": ["error", { allow: "non-jsx" }], + "@stylistic/multiline-ternary": ["error", "always-multiline"], "@stylistic/no-tabs": ["error", { allowIndentationTabs: true }], + "@stylistic/operator-linebreak": ["error", "before"], "perfectionist/sort-classes": ["error", { groups: ["static-method", "property", "method", "unknown"], type: "natural" }], // Preserve the repository's component, hook and config file naming conventions. "unicorn/filename-case": ["error", { cases: { camelCase: true, kebabCase: true, pascalCase: true } }],