feat(linter): add vitest/valid_title rule#19365
feat(linter): add vitest/valid_title rule#19365Limerio wants to merge 3 commits intooxc-project:mainfrom
vitest/valid_title rule#19365Conversation
This commit introduces a new linting rule, `valid_title`, for Vitest that checks the validity of titles in `describe`, `it`, and `test` blocks. The rule ensures that titles are meaningful, do not contain disallowed words, and adhere to specified patterns. Additionally, it includes diagnostics for common issues such as empty titles and leading/trailing spaces.
Merging this PR will not alter performance
Comparing Footnotes
|
camc314
left a comment
There was a problem hiding this comment.
Hi! Thanks for working on this - some rules are aliased between the jest/vitest plugins to share code and reduce duplication - this is one of them, the rule is implemented here:
|
Small question how is it shared between to better understand please? |
|
Take a look at these two? Effectivly if you've got the vitest plugin enabled, we check the |
Oh okay I got it thank you! |
This commit introduces a new linting rule,
valid_title, for Vitest that checks the validity of titles indescribe,it, andtestblocks. The rule ensures that titles are meaningful, do not contain disallowed words, and adhere to specified patterns. Additionally, it includes diagnostics for common issues such as empty titles and leading/trailing spaces.