ESLint configuration for humans with support for React, Vue, Svelte, Astro, Tailwind CSS, and more.
npm install -D @esmate/eslint eslintCheck out ESMate CLI for better integration with Prettier
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 .