Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 1.42 KB

File metadata and controls

45 lines (32 loc) · 1.42 KB

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and oxc linting.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

oxc Linter Configuration

This project uses oxc for lightning-fast linting. The configuration is in oxlint.json.

To run the linter:

# Check for issues
pnpm lint

# Auto-fix issues
pnpm lint:fix

oxc provides built-in rules for TypeScript, React, JSX accessibility, and more. To customize rules, edit oxlint.json:

{
  "rules": {
    "typescript": "warn",
    "react": "warn",
    "jsx-a11y": "warn",
    "unicorn": "warn"
  },
  "ignorePattern": [
    "dist/**",
    "node_modules/**"
  ]
}

For more information on oxc rules and configuration, visit the oxc documentation.