xiaohe-eslint-config

✌️ ESLint config preset for xiaohe (forked from antfu/eslint-config)

MIT License

Downloads
356
Stars
1

Xiaohe / 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.js 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.

🐶 Discussion & Communication

  • ❓:For questions or bug feedback, you can submit an issues
    and PRs are welcome~
  • 📫:[email protected]
  • 🐧:Not yet available

🏆 License