1.3.0 ⢠Published 8 months ago
@xiaohe01/eslint-config v1.3.0
xiaohe0601 / github@xiaohe0601 / gitee@xiaohe0601
š Installation
# pnpm
pnpm add -D eslint @xiaohe01/eslint-config
# yarn
yarn add --dev eslint @xiaohe01/eslint-config
# npm
npm install -D eslint @xiaohe01/eslint-config!WARNING ESLint
9.5.0+is now required
š¹ Usage
Create eslint.config.mjs in your project root
import defineConfig from "@xiaohe01/eslint-config";
export default defineConfig();!NOTE If you want to use TypeScript configuration files, please refer to typescript-configuration-files.
Add script for package.json, for example
{
"scripts": {
"lint": "eslint",
"lint:fix": "eslint --fix"
}
}For more information, please refer to antfu/eslint-config.
š License
- MIT LICENSE