Code samples for linting React and TypeScript in 2023. ✨
MIT License
First make sure you have Node installed and Yarn installed. Then, after forking the repo from GitHub:
git clone https://github.com/<your-name-here>/linting-typescript-in-2023
cd linting-typescript-in-2023
yarn
To start a Next dev server, yarn dev
.
It displays a page with four buttons, each of which is meant to set the page background to a random color.
@typescript-eslint/await-thenable
@typescript-eslint/no-floating-promises
@typescript-eslint/no-misused-promises
Each of those lint rules are disabled in .eslintrc.cjs
.
Uncomment those disables and run yarn lint
to enable the rules and see their complaints in source code.
See .github/CONTRIBUTING.md
.
Thanks! 💖