cfatrane / vitejs-boilerplate

WIP: Boilerplate for Vite Js. Eslint, Husky, Prettier, Tailwind

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Boilerplate React + TypeScript + Vite WIP

Features 🛠️

  • Husky 🐶 : Automatically lint your commit messages, code, and run tests upon committing or pushing.
  • ESlint : Statically analyzes your code to quickly find problems. It is built into most text editors and you can run ESLint as part of your continuous integration pipeline.
  • Prettier : An opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.
  • Tailwind : A utility-first CSS framework that streamlines web development by providing a set of pre-designed utility classes.
  • VSCode : Configuration file and recommended extensions

VSCode Extensions 💻

The Better Comments extension will help you create more human-friendly comments in your code. With this extension, you will be able to categorise your annotations into:

  • Alerts
  • Queries
  • TODOs
  • Highlights
  • Commented out code can also be styled to make it clear the code shouldn't be there
  • Any other comment styles you'd like can be specified in the settings

Tailwind CSS IntelliSense enhances the Tailwind development experience by providing Visual Studio Code users with advanced features such as autocomplete, syntax highlighting, and linting.

Integrates ESLint into VS Code. If you are new to ESLint check the documentation.

The extension uses the ESLint library installed in the opened workspace folder. If the folder doesn't provide one the extension looks for a global install version. If you haven't installed ESLint either locally or globally do so by running npm install eslint in the workspace folder for a local install or npm install -g eslint for a global install.

On new folders you might also need to create an .eslintrc configuration file. You can do this by either using the VS Code command Create ESLint configuration or by running the eslint command in a terminal with npx eslint --init.

SonarLint by Sonar is a free IDE extension that empowers you to fix coding issues before they exist. More than a linter, SonarLint detects and highlights issues that can lead to bugs, vulnerabilities, and code smells as you create your code. It offers clear remediation guidance and educational help, so you can fix issues before the code is committed. SonarLint in VS Code supports analysis of JS/TS, Python, PHP, Java, C, C++, C#, Go, and IaC code locally in your IDE.

ErrorLens turbo-charges language diagnostic features by making diagnostics stand out more prominently, highlighting the entire line wherever a diagnostic is generated by the language and also prints the message inline.

Suggestions ☝️

Components

State Management

Validation

About

WIP: Boilerplate for Vite Js. Eslint, Husky, Prettier, Tailwind


Languages

Language:JavaScript 52.6%Language:CSS 21.6%Language:TypeScript 20.5%Language:HTML 4.6%Language:Shell 0.7%