1.0.1 • Published 2 years ago
eslint-config-willthefirst v1.0.1
Learnings
The bible: https://eslint.org/docs/developer-guide/shareable-configs#publishing-a-shareable-config
- 'plugin:@typescript-eslint/recommended' complains unless using a version of typescript under 4.6
- For plugins with a ton of dependencies, just call them normal dependencies. This way, we get useful eslint messages about what we got to install.
- typescript version explanation: // This is to support @typescript-eslint/typescript-estree // https://github.com/typescript-eslint/typescript-eslint/blob/HEAD/README.md#supported-typescript-version
Required in root:
npm i { this package } add:
- tsconfg.eslint.json
- tsconfig.json, pointing to a useful src folder
- src folder with sample file inside
npx eslint src (tries to run eslint once in the src folder) this command will prompt you to install all necessary missing packages