useNamingConvention
: support uppercase function names for HTTP verbs
#2314
Labels
A-Linter
Area: linter
L-JavaScript
Language: JavaScript and super languages
S-Enhancement
Status: Improve an existing feature
Environment information
Rule name
useNamingConvention
Playground link
https://biomejs.dev/playground/?lintRules=all&code=ZQB4AHAAbwByAHQAIABmAHUAbgBjAHQAaQBvAG4AIABHAEUAVAAoACkAIAB7AAoAIAAgAC8ALwAgAAoAfQA%3D
Expected result
Some frameworks like Next.js allows creating API endpoints. For that you should export functions using any HTTP verb, in uppercase mode. I think they could be allowed on this rule.
Code of Conduct
The text was updated successfully, but these errors were encountered: