https://github.com/baltpeter/eslint-config
The ESLint configs I use for my projects.
https://github.com/baltpeter/eslint-config
Last synced: 5 months ago
JSON representation
The ESLint configs I use for my projects.
- Host: GitHub
- URL: https://github.com/baltpeter/eslint-config
- Owner: baltpeter
- License: cc0-1.0
- Created: 2023-01-06T21:30:09.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-04T15:42:03.000Z (almost 3 years ago)
- Last Synced: 2025-04-02T22:46:03.753Z (about 1 year ago)
- Language: JavaScript
- Size: 30.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @baltpeter/eslint-config
> The ESLint configs I use for my projects.
This package contains the ESLint configs I use for my projects. You probably don't want to use this unless you're working on a project with me.
TODO: ESLint's new [flat config system](https://eslint.org/blog/2022/08/new-config-system-part-1/) will eliminate the need for manually installing the peer dependencies in consuming projects. Switch to that once it works with the CLI.
## Usage
This package provides different configs for different use cases.
## General
Install this config and its peer dependencies:
```sh
yarn add --dev @baltpeter/eslint-config eslint @typescript-eslint/eslint-plugin eslint-plugin-eslint-comments eslint-plugin-import typescript
```
Then, add the following to your `.eslintrc`:
```json
{
"root": true,
"extends": ["@baltpeter/eslint-config"]
}
```
## Preact
Install this config and its peer dependencies:
```sh
yarn add --dev @baltpeter/eslint-config eslint @typescript-eslint/eslint-plugin eslint-plugin-eslint-comments eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks typescript
```
Then, add the following to your `.eslintrc`:
```json
{
"root": true,
"extends": ["@baltpeter/eslint-config/preact"]
}
```