snyk / sweater-comb

API linting rules
Other
21 stars 8 forks source link

Resources must be plural nouns #146

Open cmars opened 2 years ago

cmars commented 2 years ago

This will likely require some slight smarts because natural language, but all resource names should be plural nouns.

acunniffe commented 2 years ago

Looks like https://www.npmjs.com/package/pluralize might be decent and extensible. Your domain has a limited vocabulary so if you had to add a special case, this library supports it.

want one of us to take a stab?

cmars commented 2 years ago

Yes please! 🙏