@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.