# eslint-config-ns-base

> eslint config ready to be used in multiple projects

Latest version **5.0.0** (published 2025-08-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-config-ns-base
pnpm add eslint-config-ns-base
yarn add eslint-config-ns-base
bun add eslint-config-ns-base
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.0.0 |
| Published | 2025-08-07 |
| First published | 2022-02-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | ^22.x \|\| ^24.x |
| Dependencies | 7 |
| Unpacked size | 11.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Stefan Natter |
| Maintainers | natterstefan |
| Keywords | eslint, eslint-config, prettier, prettier-config |

## Links

- npm: https://www.npmjs.com/package/eslint-config-ns-base
- Repository: https://github.com/natterstefan/eslint-config-ns
- Homepage: https://github.com/natterstefan/eslint-config-ns/tree/main/packages/eslint-config-ns-base
- Issues: https://github.com/natterstefan/eslint-config-ns/issues
- npm.io page: https://npm.io/package/eslint-config-ns-base

## Dependencies (7)

- [eslint-plugin-jest](https://npm.io/package/eslint-plugin-jest.md) ^27.2.3
- [@babel/eslint-parser](https://npm.io/package/@babel/eslint-parser.md) ^7.22.9
- [eslint-plugin-import](https://npm.io/package/eslint-plugin-import.md) ^2.28.0
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) ^8.9.0
- [eslint-plugin-prettier](https://npm.io/package/eslint-plugin-prettier.md) ^5.0.0
- [@rushstack/eslint-patch](https://npm.io/package/@rushstack/eslint-patch.md) ^1.3.2
- [eslint-config-airbnb-base](https://npm.io/package/eslint-config-airbnb-base.md) ^15.0.0

## Recent versions

- 5.0.0 (latest) — 2025-08-07
- 4.0.0 — 2023-07-31
- 3.5.0 — 2022-10-26
- 3.4.0 — 2022-10-23
- 3.3.0 — 2022-08-15
- 3.2.0 — 2022-08-15
- 3.1.0 — 2022-08-15
- 3.0.0 — 2022-02-27

## README

# eslint-config-ns-base

[![npm version](https://badge.fury.io/js/eslint-config-ns-base.svg)](https://badge.fury.io/js/eslint-config-ns-base)
[![GitHub license](https://img.shields.io/github/license/natterstefan/eslint-config-ns.svg)](https://github.com/natterstefan/eslint-config-ns/blob/main/LICENSE)

## Contents

* [eslint-config-ns-base](#eslint-config-ns-base)
  * [Contents](#contents)
  * [Related Configs](#related-configs)
  * [Features](#features)
  * [Installation](#installation)
  * [Usage](#usage)
    * [Prettier Config](#prettier-config)
  * [Assumptions](#assumptions)
  * [LICENSE](#license)
  * [Maintainers](#maintainers)

## Related Configs

- JavaScript:
  [eslint-config-ns-base](https://www.npmjs.com/package/eslint-config-ns-base)
- JavaScript React:
  [eslint-config-ns](https://www.npmjs.com/package/eslint-config-ns)
- TypeScript:
  [eslint-config-ns-ts-base](https://www.npmjs.com/package/eslint-config-ns-ts-base)
- TypeScript React:
  [eslint-config-ns-ts](https://www.npmjs.com/package/eslint-config-ns-ts)

## Features

The config is built upon Airbnb's ESLint rules with additional rules and
optimizations (see [assumptions](#assumptions)).

- based on the the popular
  [JavaScript code style from Airbnb](https://www.npmjs.com/package/eslint-config-airbnb)
- with [Jest](https://jestjs.io/), and
  [Prettier](https://prettier.io/docs/en/eslint.html#use-eslint-to-run-prettier)
  support

## Installation

Install the package with

```sh
npm install eslint-config-ns-base --save-dev

# or
yarn add eslint-config-ns-base -D
```

`eslint-config-ns-base` requires you to take care of it's `peerDependencies`.
Install the correct version of each `peerDependencies` package, which are listed
with the following command:

```sh
npm info "eslint-config-ns-base@latest" peerDependencies
```

If using npm 5+, use this shortcut:

```sh
npx install-peerdeps --dev eslint-config-ns-base

# or
yarn add eslint-config-ns-base -D --peer
```

## Usage

Now add `eslint-config-ns-base` to either your `package.json`:

```json
{
  "eslintConfig": {
    "extends": "eslint-config-ns-base"
  }
}
```

to your `.eslintrc`:

```json
{
  "extends": "eslint-config-ns-base"
}
```

or `.eslintrc.js`:

```js
module.exports = {
  extends: 'eslint-config-ns-base',
}
```

### Prettier Config

This is how you can use or extend the `eslint-config-ns-base` prettier config in
your app:

```js
// prettier.config.js
module.exports = require('eslint-config-ns-base/prettier.config')
```

## Assumptions

`eslint-config-ns-base` comes with some fundamental assumptions:

- Browser and/or Node.js environment
- Jest as the selected test-suite
- it uses the `@babel/eslint-parser` parser

Even though I made some assumptions,
[you can easily overwrite, extend and unset rules and any other setting in your custom eslint config](https://eslint.org/docs/user-guide/configuring).

## LICENSE

[MIT](LICENSE)

## Maintainers

<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
  <tbody>
    <tr>
      <td align="center">
        <a href="https://github.com/natterstefan">
          <img width="150" height="150" src="https://github.com/natterstefan.png?v=3&s=150">
          </br>
          Stefan Natter
        </a>
        <div>
          <a href="https://twitter.com/natterstefan">
            <img src="https://img.shields.io/twitter/follow/natterstefan.svg?style=social&label=Follow" />
          </a>
        </div>
      </td>
    </tr>
  <tbody>
</table>
<!-- markdownlint-enable -->
<!-- prettier-ignore-end -->

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