Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/casperiv0/eslint-config

My ESLint config. Feel free to use :)
https://github.com/casperiv0/eslint-config

eslint-config eslint-config-react npm-package

Last synced: 27 days ago
JSON representation

My ESLint config. Feel free to use :)

Awesome Lists containing this project

README

        

# @casperiv/eslint-config

## Install

### Packages

- [`eslint-config`][config_url]: the base config
- [`eslint-config-react`][react_url]: the react config
- [`eslint-config-next`][nextjs_url]: the Next.js config

#### eslint-config

```bash
npm install @casperiv/eslint-config
```

#### eslint-config-react

```bash
npm install @casperiv/eslint-config @casperiv/eslint-config-react
```

#### eslint-config-next

```bash
npm install @casperiv/eslint-config @casperiv/eslint-config-react @casperiv/eslint-config-next
```

## Usage

Use `extends` in your ESLint config

```json
{
"extends": ["@casperiv/eslint-config"]
}
```

### With react

```json
{
"extends": ["@casperiv/eslint-config", "@casperiv/eslint-config-react"]
}
```

### With Next.js

```json
{
"extends": ["@casperiv/eslint-config", "@casperiv/eslint-config-react", "@casperiv/eslint-config-next"]
}
```

## License

[Casper Iversen MIT](./LICENSE)

[config_url]: https://github.com/casperiv0/eslint-config/tree/main/packages/eslint-config
[react_url]: https://github.com/casperiv0/eslint-config/tree/main/packages/eslint-config-react
[nextjs_url]: https://github.com/casperiv0/eslint-config/tree/main/packages/eslint-config-next