1.0.3 • Published 1 year ago

@esmate/eslint v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@esmate/eslint

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

Installation

npm install -D @esmate/eslint eslint

If you are using ESMate CLI, it's built-in, so only need to install eslint.

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,
  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 .