From e997fadceadab39f00fcd5ffbc514bc1b60809f7 Mon Sep 17 00:00:00 2001 From: "adamlui@protonmail.com" Date: Tue, 28 Jan 2025 00:11:34 -0800 Subject: [PATCH] Added allow multi-tags in single line to HTML rules --- eslint.config.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index d9cb7ea5..701ab7af 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -51,7 +51,8 @@ export default [ ...html.configs['flat/recommended'].rules, '@html-eslint/require-title': 'off', // allow missing title tags '@html-eslint/quotes': 'off', // allow unquoted attrs for compactness - '@html-eslint/attrs-newline': 'off' // allow attrs on one line + '@html-eslint/attrs-newline': 'off', // allow multi-attrs in single line + '@html-eslint/element-newline': ['error', { 'skip': ['html'] }] // allow multi-tags in single line } }, { files: ['**/*.json'], language: 'json/json', ...json.configs.recommended },