@hideoo/eslint-config
TypeScript icon, indicating that this package has built-in type declarations

3.0.1 • Public • Published

@hideoo/eslint-config 🚨

HiDeoo's Eslint configuration

Usage

Install

$ pnpm add -D eslint @hideoo/eslint-config

Configure

Reference the configuration in your eslint.config.js file:

import hideoo from '@hideoo/eslint-config'

export default hideoo()

Run

Add a script in your package.json file to run ESLint:

{
  "scripts": {
    "lint": "eslint . --cache --max-warnings=0"
  }
}

Customization

You can customize the configuration by passing an array of configuration objects to the hideoo function:

export default hideoo([{ ignores: ['**/fixtures'] }])

Visual Studio Code support

After installing the ESLint extension, create a .vscode/settings.json file in your project with the following content:

{
  "eslint.experimental.useFlatConfig": true,
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "typescript",
    "typescriptreact",
    "html",
    "vue",
    "markdown",
    "astro"
  ]
}

License

Licensed under the MIT License, Copyright © HiDeoo.

See LICENSE for more information.

Package Sidebar

Install

npm i @hideoo/eslint-config

Weekly Downloads

25

Version

3.0.1

License

MIT

Unpacked Size

33.6 kB

Total Files

7

Last publish

Collaborators

  • hideoo