Skip to content

Latest commit

 

History

History

README.md

@esmate/eslint

ESLint configuration for humans with support for React, Vue, Svelte, Astro, Tailwind CSS, and more.

Installation

npm install -D @esmate/eslint eslint

Check out ESMate CLI for better integration with Prettier

Usage

Define your ESLint configuration in a eslint.config.js file:

// @ts-check
import { defineConfig } from "@esmate/eslint";

export default defineConfig({
  type: "app",
  react: true,
  // vue: true,
  // astro: true,
  // tanstack: {
  //   query: true,
  //   router: true,
  // },
  ignores: [],
});

@esmate/eslint is a wrapper around @antfu/eslint-config with customizations to ensure compatibility with @esmate/prettier by default.

Check out @antfu/eslint-config to see all available options for React, Vue, Astro, Svelte, and more.

Run ESLint to check your code:

eslint .

Automatically fix formatting issues:

eslint --write .