Starter kit for modern web applications with EsLint and Husky
Starting a new project and setting up everything from scratch can be a pain. Therefor i decided to create my own little Starter kit with the most common Libraries and stuff.
- โจ Vite
- โจ React
v18
- โจ TypeScript
- โจ Tailwind CSS
- โจ ESlint
AirBnB config
Prettier config
- โจ Prettier
- โจ Husky
Vite is the build tool of choice. It is super fast and is based on native ES modules, rollup, and esbuild
React in the latest version (v18). All dependencies match up against the version of React.
"Not using TypeScript is like driving without a seatbelt" - Matt Howard.
TypeScript is a superset of JavaScript. Once you know JavaScript you should learn TypeScript easily and fast. Checkout the official documentation!
"Rapidly build modern websites without ever leaving your HTML." - Official Tailwind CSS Website. Tailwind CSS is a framework for quickly building and customizing applications without writing custom CSS.
ESlint is preconfigured with one of the most popular config.
The following configs are included:
Prettier is preconfigured. For the current configuration check the ./.prettierrc.cjs file.
Check out husky. Currently it is configured with a pre-commit hook that checks your code.
You can fork/clone the repository.
Install dependencies:
npm install # or yarn
In order to run it in development, run:
npm run dev # or yarn dev
In order to do a production build, run:
npm run build # yarn build
To lint the code, run
npm run lint # yarn lint
To fix autofixable linting errors, run
npm run lint:fix # yarn lint:fix
To check your formatting, run
npm run format:check # yarn format:check
To fix your formatting, run
npm run format:fix # yarn format:fix