Setting up ESLint & Prettier in ViteJS

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • prettier

    Prettier is an opinionated code formatter.

  • Prettier: Our main code formatter.

  • typescript-eslint

    :sparkles: Monorepo for all the tooling which enables ESLint to support TypeScript

  • @typescript-eslint/eslint-plugin: An ESLint plugin which provides rules for TypeScript codebases.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • eslint-config-prettier

    Turns off all rules that are unnecessary or might conflict with Prettier.

  • eslint-config-prettier: An ESLint configuration which disables the formatting rules in ESLint that Prettier is going to be responsible for handling, hence avoiding any clashes.

  • eslint-plugin-import

    ESLint plugin with rules that help validate proper imports.

  • eslint-plugin-import: Tells ESLint how to resolve imports.

  • eslint-plugin-jsx-a11y

    Static AST checker for a11y rules on JSX elements.

  • eslint-plugin-jsx-a11y: Checks for accessiblity issues.

  • eslint-plugin-react

    React-specific linting rules for ESLint

  • eslint-plugin-react: React specific linting rules for ESLint.

  • prettier-eslint

    Code :arrow_right: prettier :arrow_right: eslint --fix :arrow_right: Formatted Code :sparkles:

  • prettier-eslint

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • eslint-plugin-prettier

    ESLint plugin for Prettier formatting

  • eslint-plugin-prettier

  • husky

    Git hooks made easy 🐶 woof!

  • If you'd like, you can go a bit further and automate the linting and formatting process a bit. I like to use Husky which allows you to run your linter, tests etc. on a git commit/push etc. You can also then use pretty-quick along with husky to automatically format your code whenever you git commit, just in case someone on your team hasn't set it up in their IDE.

  • pretty-quick

    ⚡ Get Pretty Quick

  • If you'd like, you can go a bit further and automate the linting and formatting process a bit. I like to use Husky which allows you to run your linter, tests etc. on a git commit/push etc. You can also then use pretty-quick along with husky to automatically format your code whenever you git commit, just in case someone on your team hasn't set it up in their IDE.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts