GitShow/antfu/case-police
antfu

case-police

๐Ÿšจ Make the case correct, PLEASE!

by antfu
Star on GitHubForknpm

TypeScript

1.4k stars91 forks92 contributorsQuiet ยท 2mo agoSince 2022v2.2.1MIT

Meet the team

See all 92 on GitHub โ†’
antfu
antfu107 contributions
PinkChampagne17
PinkChampagne178 contributions
holazz
holazz5 contributions
webfansplz
webfansplz3 contributions
wey-gu
wey-gu3 contributions
Evavic44
Evavic443 contributions
sajadhsm
sajadhsm3 contributions
rubiin
rubiin3 contributions

Languages

View on GitHub โ†’
TypeScript97.9%
JavaScript1.3%
Vue0.8%

Commit activity

Last 12 weeks ยท 3 commits

Full graph โ†’

Community health

5 of 6 standards met

Community profile โ†’
85
โœ“READMEโœ“Licenseโœ“Contributingโœ“Code of Conductโ—‹Issue Templateโœ“PR Template

Recent PRs & issues

Quiet ยท 4 in progress ยท Last activity 2mo ago
See all on GitHub โ†’
ilyaliao
feat: add Claude Code to softwares dictionaryOpenPR

This PR adds to the softwares dictionary.

ilyaliao ยท 1w ago

Recent fixes

View closed PRs โ†’
dbrasseur-aneo
Rules with a dot in them are ignored if a prior rule matches at least part of itClosedIssue

Describe the bug If you add rules as : then will match as : but if you add them as : then the same text will match as : A fix could be to sort the keys by size (to have the "closest" match first) Reproduction https://stackblitz.com/edit/stackblitz-starters-zc8y2r?file=test.md System Info Used Package Manager pnpm Validations [X] Follow our Code of Conduct [X] Read the Contributing Guide. [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead. [X] The provided reproduction is a minimal reproducible of the bug.

dbrasseur-aneo ยท 2mo ago
MukundaKatta
fix(regex): sort dictionary keys by length so longer rules match firstMergedPR

Summary Regex alternation is leftmost-wins, not longest-wins. So when the dictionary contains both and , results depended on dictionary insertion order: Against input : Before: , then inside โ†’ , leaving โŒ After: longer key tried first โ†’ , โœ… Sort keys by length descending when building the regex so the more specific rule wins, regardless of dictionary order. Test plan [x] โ€” 6 tests pass (2 new cases for both dictionary orderings) [x] [x] Fixes #158

MukundaKatta ยท 2mo ago
roli-lpci
fix: use context.filename for ESLint 10 compatibilityMergedPR

Fixes #177 was removed in ESLint 10. Replace with (available since ESLint 8.40). Also bumps peerDependencies to include ESLint 10.

roli-lpci ยท 4mo ago
Structured data for AI agents

Repository: antfu/case-police. Description: ๐Ÿšจ Make the case correct, PLEASE! Stars: 1428, Forks: 91. Primary language: TypeScript. Languages: TypeScript (97.9%), JavaScript (1.3%), Vue (0.8%). License: MIT. Latest release: v2.2.1 (2mo ago). Open PRs: 4, open issues: 3. Last activity: 2mo ago. Community health: 85%. Top contributors: antfu, PinkChampagne17, holazz, webfansplz, wey-gu, Evavic44, sajadhsm, rubiin, Justineo, thecuvii and others.

ยท@ofershap

Replace github.com with gitshow.dev