Sane Code
Run npx sane-code
in your repo to check for things like
- JSON Schema validity of your
package.json
,.eslintrc.js
etc - unnecessary defaults in config files like
tsconfig.json
orpackage.json
- subjective code smells like
@types/*
independencies
instead ofdevDependencies
- whether or not linting is set up
- if there's only one type of lockfile present
- whether or not the project depends on deprecated packages
- best practices like no hard-pins of dependencies, test script set up
- recommendations like enabling
esModuleInterop
intsconfig.json
etc - unused TypeScript exports
- unused TypeScript symbols
Feel free to open issues if you have suggestions for more checks
Development
- Clone the repo
- Add some checks
- Run
npm run start
to run the checks on thesane-code
repo itself