Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hideoo/eslint-config
HiDeoo's ESLint configuration
https://github.com/hideoo/eslint-config
astro base config eslint eslint-config react typescript
Last synced: 12 days ago
JSON representation
HiDeoo's ESLint configuration
- Host: GitHub
- URL: https://github.com/hideoo/eslint-config
- Owner: HiDeoo
- License: mit
- Created: 2022-06-30T14:42:26.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-29T07:11:20.000Z (5 months ago)
- Last Synced: 2024-05-29T19:56:53.070Z (5 months ago)
- Topics: astro, base, config, eslint, eslint-config, react, typescript
- Language: TypeScript
- Homepage:
- Size: 858 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
@hideoo/eslint-config 🚨
HiDeoo's Eslint configuration
## Usage
### Install
```shell
$ pnpm add -D eslint @hideoo/eslint-config
```### Configure
Reference the configuration in your `eslint.config.js` file:
```js
import hideoo from '@hideoo/eslint-config'export default hideoo()
```### Run
Add a script in your `package.json` file to run ESLint:
```json
{
"scripts": {
"lint": "eslint . --cache --max-warnings=0"
}
}
```## Customization
You can customize the configuration by passing an array of [configuration objects](https://eslint.org/docs/latest/use/configure/configuration-files-new#configuration-objects) to the `hideoo` function:
```js
export default hideoo([{ ignores: ['**/fixtures'] }])
```## Visual Studio Code support
After installing the [ESLint extension](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint), create a `.vscode/settings.json` file in your project with the following content:
```json
{
"eslint.experimental.useFlatConfig": true,
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"html",
"vue",
"markdown",
"astro"
]
}
```## License
Licensed under the MIT License, Copyright © HiDeoo.
See [LICENSE](https://github.com/HiDeoo/eslint-config/blob/main/LICENSE) for more information.