Enable eslint space-before-function-paren (#30078)

Anonymous are set to ignore as I [couldn't
decide](https://github.com/go-gitea/gitea/pull/30077#discussion_r1538117497).
No current violations.

Rule docs: https://eslint.style/rules/js/space-before-function-paren

(cherry picked from commit bcb151c220c3fa6003810e436acdda9cc0501e58)
This commit is contained in:
silverwind 2024-03-26 00:14:17 +01:00 committed by Earl Warren
parent e8c5406971
commit faffda01e3
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -167,7 +167,7 @@ rules:
"@stylistic/js/semi-spacing": [2, {before: false, after: true}] "@stylistic/js/semi-spacing": [2, {before: false, after: true}]
"@stylistic/js/semi-style": [2, last] "@stylistic/js/semi-style": [2, last]
"@stylistic/js/space-before-blocks": [2, always] "@stylistic/js/space-before-blocks": [2, always]
"@stylistic/js/space-before-function-paren": [0] "@stylistic/js/space-before-function-paren": [2, {anonymous: ignore, named: never, asyncArrow: always}]
"@stylistic/js/space-in-parens": [2, never] "@stylistic/js/space-in-parens": [2, never]
"@stylistic/js/space-infix-ops": [2] "@stylistic/js/space-infix-ops": [2]
"@stylistic/js/space-unary-ops": [2] "@stylistic/js/space-unary-ops": [2]