Skip to content

chore: introduce ESLint with @antfu/eslint-config flat config#84

Open
ByteYue wants to merge 1 commit intojackwener:mainfrom
ByteYue:add_ESLint
Open

chore: introduce ESLint with @antfu/eslint-config flat config#84
ByteYue wants to merge 1 commit intojackwener:mainfrom
ByteYue:add_ESLint

Conversation

@ByteYue
Copy link
Contributor

@ByteYue ByteYue commented Mar 19, 2026

Description

  • Add eslint.config.js with type-aware rules (tsconfigPath)
  • Set @typescript-eslint/no-explicit-any to warn for gradual tightening
  • Ignore dist/, scripts/, tests/, vitest.config.ts (outside tsconfig)
  • Disable jsonc/sort-keys for config files
  • Update lint script from 'tsc --noEmit' to 'eslint .'
  • Add lint:fix script for auto-fixable issues
  • Add Lint step in CI workflow (ci.yml) after typecheck
  • Update CONTRIBUTING.md: Code Style, Quick Start, PR checklist

Related issue:

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 🌐 New site adapter
  • 📝 Documentation
  • ♻️ Refactor
  • 🔧 CI / build / tooling

Checklist

  • I ran the checks relevant to this PR
  • I updated tests or docs if needed
  • I included output or screenshots when useful

Screenshots / Output

- Add eslint.config.js with type-aware rules (tsconfigPath)
- Set @typescript-eslint/no-explicit-any to warn for gradual tightening
- Ignore dist/, scripts/, tests/, vitest.config.ts (outside tsconfig)
- Disable jsonc/sort-keys for config files
- Update lint script from 'tsc --noEmit' to 'eslint .'
- Add lint:fix script for auto-fixable issues
- Add Lint step in CI workflow (ci.yml) after typecheck
- Update CONTRIBUTING.md: Code Style, Quick Start, PR checklist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant