@startlinks/eslint-config
v2.2.1
Published
ESLint config by StartLinks
Readme
@StartLinks/eslint-config
fzf404's personal ESLint config, forked and upgraded for boarder use in StartLinks.
Features ( 特性 )
- FlatConfig-Based
- Fully ESM ( 完全 ESM )
- Supports React Native ( 支持 React Native )
- Supports TypeScript ( 支持 TypeScript )
- Support UnoCSS sorting ( 支持 UnoCSS 排序 )
- Compatible with Prettier 3 ( 兼容 Prettier 3 )
- Support Import sorting ( 支持 Import 排序 )
- Support Import validation ( 支持 Import 验证 )
- Support Markdown formatting ( 支持 Markdown 格式化 )
- Support sorting of
packge.json( 支持packge.json排序 ) - Ignoring files contained in
.gitignore( 忽略.gitignore包含的文件 )
Plugins ( 插件 )
- eslint-gitignore - Git Ignore plugin ( .gitignore 插件 )
- eslint-plugin-jsonc - JSON plugin ( JSON 插件 )
- eslint-plugin-import - Import validate ( Import 验证 )
- eslint-plugin-prettier - Prettier plugin ( Prettier 插件 )
- eslint-plugin-unicorn - Powerful ESLint rules ( 实用 ESLint 规则 )
- eslint-plugin-markdown - Markdown plugin ( Markdown 插件 )
- eslint-plugin-simple-import-sort - Import order ( Import 排序 )
- typescript-eslint - TypeScript plugin ( TypeScript 插件 )
(...有待补充)
Install ( 安装 )
pnpm i -D @startlinks/eslint-configUsage ( 使用 )
Edit package.json ( 编辑 package.json )
{
"scripts": {
"lint": "eslint --cache --fix ."
},
"eslintConfig": {
"extends": [
"@startlinks/eslint-config"
]
}
}