Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

An ESLint shareable config that I used in my projects
https://github.com/fab1o0107/eslint-config

eslint eslint-config eslint-plugin javascript node nodejs typescript

Last synced: 4 days ago
JSON representation

An ESLint shareable config that I used in my projects

Awesome Lists containing this project

README

        

# eslint-config
> An ESLint [shareable config](http://eslint.org/docs/developer-guide/shareable-configs.html) that I used in my projects ✔


NPM version

## Install

```bash
npm install -D @fab1o0107/eslint-config
yarn add -D @fab1o0107/eslint-config
```

## Usage

ESLint guide: [link](https://eslint.org/docs/user-guide/configuring#using-a-shareable-configuration-package)

### Example

```json
{
"extends": "@fab1o0107/eslint-config"
}
```
or `"@fab1o0107/eslint-config/node"` for Node environment

### Example (TS)

```json
{
"extends": "@fab1o0107/eslint-config/typescript"
}
```
or `"@fab1o0107/eslint-config/typescript/node"` for Node environment

## Note

Requires [ESLint](https://npmjs.com/package/eslint) version 8.38 or newer

TypeScript config requires:
- [@typescript-eslint/parser](https://npmjs.com/package/@typescript-eslint/parser) version 5.57.1 or newer
- [@typescript-eslint/eslint-plugin](https://npmjs.com/package/@typescript-eslint/eslint-plugin) version 5.57.1 or newer
- [typescript](https://npmjs.com/package/typescript) version 3.3.1 to 6.0