# @lasalefamine/eslint-config-base

> Eslint JS sharable base config

Latest version **6.0.0** (published 2025-09-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @lasalefamine/eslint-config-base
pnpm add @lasalefamine/eslint-config-base
yarn add @lasalefamine/eslint-config-base
bun add @lasalefamine/eslint-config-base
```

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 6.0.0 |
| Published | 2025-09-18 |
| First published | 2020-05-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=20 |
| Dependencies | 3 |
| Unpacked size | 73.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | LasaleFamine |
| Maintainers | lasalefamine |
| Keywords | eslint, eslintconfig, config, lasalefamine, javascript, styleguide, es2015, es2016, es2017, es2018 |

## Links

- npm: https://www.npmjs.com/package/@lasalefamine/eslint-config-base
- Repository: https://github.com/LasaleFamine/eslintc
- Homepage: https://github.com/LasaleFamine/eslintc#readme
- Issues: https://github.com/LasaleFamine/eslintc/issues
- npm.io page: https://npm.io/package/@lasalefamine/eslint-config-base

## Dependencies (3)

- [object.assign](https://npm.io/package/object.assign.md) ^4.1.7
- [object.entries](https://npm.io/package/object.entries.md) ^1.1.9
- [confusing-browser-globals](https://npm.io/package/confusing-browser-globals.md) ^1.0.11

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 6.0.0 (latest) — 2025-09-18
- 5.0.0 — 2024-08-30
- 4.0.4 — 2024-08-30
- 4.0.2 — 2024-08-30
- 4.0.0 — 2024-08-30
- 3.1.1 — 2024-08-30
- 3.1.0 — 2023-10-05
- 3.0.3 — 2023-07-18
- 3.0.2 — 2023-02-09
- 3.0.1 — 2022-12-07
- 3.0.0 — 2022-12-05
- 2.0.7 — 2022-05-31
- 2.0.6 — 2022-05-31
- 2.0.5 — 2022-05-31
- 2.0.4 — 2022-05-31
- … 15 more at https://npm.io/package/@lasalefamine/eslint-config-base/versions

## README

![CI](https://github.com/LasaleFamine/eslintc/workflows/CI/badge.svg)
[![npm](https://img.shields.io/npm/v/@lasalefamine/eslint-config-base.svg?style=flat)](https://www.npmjs.com/package/@lasalefamine/eslint-config-base)

# @lasalefamine/eslint-config-base

> Base config for ESlint - no React

Our default export contains all of our ESLint rules, including ECMAScript 6+. It requires `eslint`, `eslint-plugin-import`, `eslint-plugin-simple-import-sort`, `@typescript-eslint/eslint-plugin`, `@typescript-eslint/parser` and `typescript`

## WARN
> From version 5.0.0 we are using ESlint 9.

## Install

First install the dependencies:

```
yarn add --dev eslint eslint-plugin-import eslint-plugin-simple-import-sort @typescript-eslint/eslint-plugin @typescript-eslint/parser typescript
```

Then add our config:

```
yarn add --dev @lasalefamine/eslint-config-base
```

## Usage

### @lasalefamine/eslint-config-base

Add to your `.eslintrc`
```json
{
  "extends": "@lasalefamine/eslint-config-base",
  "parserOptions": {
    "project": "tsconfig.json"
  }
}
```

### tsconfig.eslint.json

Create a new `tsconfig.eslint.json` files for overrides the `include` and `exclude` of your main `tsconfig.json`, so that ESLint will be able to lint everything without complaining:
```json
{
  "extends": "./tsconfig.json",
  "exclude": [
    "node_modules"
  ],
  "include": [
    "**/*.js",
    "**/*.ts",
    "**/*.tsx"
  ]
}
```

And in your `.eslintrc`:

```json
{
  "extends": "@lasalefamine/eslint-config-base",
  "parserOptions": {
    "project": "tsconfig.eslint.json"
  }
}
```

## The `parserOptions.project` issue

You may wonder why you need to add an extra `tsconfig.eslint.json` file: this is kinda a problem with some rules that come from `@typescript-eslint` that need type information during the linting process, this is why you need to add a `projectOptions.project` to your `.eslintrc`. At this point ESLint will lint **only files specified within the `include` array of the `tsconfig` you choose**, this actually why you need to create a new `tsconfig.eslint.json`, extends your main `tsconfig` for having type information available to ESLint and then just re-include everythin you need to lint.

More info:
- https://github.com/typescript-eslint/typescript-eslint/issues/856
- https://github.com/typescript-eslint/typescript-eslint/issues/890


## Develop

You can run tests with `yarn test`.

You can make sure this module lints with itself using `yarn lint`.

---
_Source: https://npm.io/package/@lasalefamine/eslint-config-base · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
