1.3.0 • Published 4 months ago

@xiaohe01/eslint-config v1.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

github stars npm version npm downloads JSDocs License

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