Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How do you enforce the use of validation library with eslint?


Can't fully enforce that one, but I require only my specific HTTP router / SQL library to be used, and disallow the import of express / pg libraries via eslint. I also disable the use of JSON.parse via eslint. Combined with strong language in the CLAUDE.md, I haven't seen it get around my guard rails.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: