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
- Host: GitHub
- URL: https://github.com/lazycuh/eslint-config-base-with-jest
- Owner: lazycuh
- Created: 2023-11-19T19:51:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-31T04:11:43.000Z (over 1 year ago)
- Last Synced: 2025-03-19T12:39:55.009Z (2 months ago)
- Topics: eslint, eslint-config, eslint-node, eslint-node-typescript, eslint-typescript, eslint-typescript-javascript
- Language: Shell
- Homepage: https://www.npmjs.com/package/@lazycuh/eslint-config-base-with-jest
- Size: 150 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# eslint-config-base-with-jest [](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.
}
}
]
}
```