eslint-sets
ESLint 配置集
[GitHub]
简介
eslint-sets 是一个 ESLint 插件配置集,提供了多种预设配置,支持 JavaScript、TypeScript、Vue、React 等多种技术栈。
特性
- 📦 多种预设 - JS、TS、Vue、React 等预设配置
- 🔧 零配置 - 开箱即用
- 🎯 Flat Config - 支持 ESLint 9+ flat config
- 📝 完整规则 - 覆盖常见代码规范
安装
bash
# npm
npm install -D @eslint-sets/eslint-config
# yarn
yarn add -D @eslint-sets/eslint-config
# pnpm
pnpm add -D @eslint-sets/eslint-config使用示例
js
// eslint.config.js
import eslintConfig from '@eslint-sets/eslint-config'
export default eslintConfig()相关插件
- eslint-plugin-vitest-globals - Vitest 全局变量支持
- eslint-reporter - ESLint 报告工具
统计
- ⭐ Stars: 7
- 🍴 Forks: 1
- 📦 主要语言: TypeScript