allow space after const {}. Set keyword spacing to warning (#9589)

This commit is contained in:
Mario Pietsch
2026-01-20 22:03:43 +01:00
committed by GitHub
parent ded76aa84f
commit 62ae4b24bc

View File

@@ -104,7 +104,7 @@ js.configs.recommended,
"init-declarations": "off", "init-declarations": "off",
"@stylistic/jsx-quotes": "error", "@stylistic/jsx-quotes": "error",
"@stylistic/key-spacing": "off", "@stylistic/key-spacing": "off",
"@stylistic/keyword-spacing": ["error", { "@stylistic/keyword-spacing": ["warn", {
before: true, before: true,
after: false, after: false,
overrides: { overrides: {
@@ -114,6 +114,7 @@ js.configs.recommended,
return: { after: true }, return: { after: true },
throw: { after: true }, throw: { after: true },
try: { after: true }, try: { after: true },
const: { after: true }
}, },
}], }],
"@stylistic/line-comment-position": "off", "@stylistic/line-comment-position": "off",