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

https://github.com/lazycuh/eslint-config-base-with-jest

Base ESLint rules with support for linting Jest test files
https://github.com/lazycuh/eslint-config-base-with-jest

eslint eslint-config eslint-node eslint-node-typescript eslint-typescript eslint-typescript-javascript

Last synced: 2 months ago
JSON representation

Base ESLint rules with support for linting Jest test files

Awesome Lists containing this project

README

        

# eslint-config-base-with-jest [![](https://circleci.com/gh/babybeet/eslint-config-base-with-jest.svg?style=svg&logo=appveyor)](https://app.circleci.com/pipelines/github/babybeet/eslint-config-base-with-jest?branch=main)

[Base ESLint rules](https://github.com/babybeet/eslint-config-base) with support for linting Jest test files.

## Installation

- `npm`
```
npm i -S @babybeet/eslint-config-base-with-jest
```
- `pnpm`
```
pnpm i -S @babybeet/eslint-config-base-with-jest
```
- `yarn`

```
yarn add @babybeet/eslint-config-base-with-jest
```

## Setting up

In your `.eslintrc.json` file, add the followings:

```json
{
"$schema": "https://json.schemastore.org/eslintrc.json",
"root": true,
"ignorePatterns": ["!**/*"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
// It's recommended to use an override to not globally change your ESLint configuration.
"overrides": [
{
"files": ["*.ts"],
"extends": ["@babybeet/eslint-config-base-with-jest"],
"rules": {
// Add your own rule overrides if desired.
}
}
]
}
```