From d7f984c1cc08619297df7293e18f9bb134ba44d6 Mon Sep 17 00:00:00 2001 From: pmario Date: Sat, 17 Jan 2026 19:10:16 +0100 Subject: [PATCH] allow space after const {}. Set keyword spacing to warning --- eslint.config.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 3a129c6c2..bb9e12ba4 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -104,7 +104,7 @@ js.configs.recommended, "init-declarations": "off", "@stylistic/jsx-quotes": "error", "@stylistic/key-spacing": "off", - "@stylistic/keyword-spacing": ["error", { + "@stylistic/keyword-spacing": ["warn", { before: true, after: false, overrides: { @@ -114,6 +114,7 @@ js.configs.recommended, return: { after: true }, throw: { after: true }, try: { after: true }, + const: { after: true } }, }], "@stylistic/line-comment-position": "off",