# eslint-config-nfour

> My go to eslint config for typescript & prettier

Latest version **4.0.0** (published 2025-08-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-config-nfour
pnpm add eslint-config-nfour
yarn add eslint-config-nfour
bun add eslint-config-nfour
```

## Health

**Score 40/100 (D)** — status: stable.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 4.0.0 |
| Published | 2025-08-20 |
| First published | 2021-03-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 19 |
| Unpacked size | 7.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | nfour |
| Maintainers | nfour |

## Links

- npm: https://www.npmjs.com/package/eslint-config-nfour
- Repository: https://github.com/nfour/eslint-config-nfour
- Homepage: https://github.com/nfour/eslint-config-nfour#readme
- Issues: https://github.com/nfour/eslint-config-nfour/issues
- npm.io page: https://npm.io/package/eslint-config-nfour

## Dependencies (19)

- [eslint](https://npm.io/package/eslint.md) ^9.33.0
- [prettier](https://npm.io/package/prettier.md) ^3.6.2
- [@eslint/js](https://npm.io/package/@eslint/js.md) ^9.33.0
- [@eslint/compat](https://npm.io/package/@eslint/compat.md) ^1.3.2
- [eslint-plugin-n](https://npm.io/package/eslint-plugin-n.md) ^17.21.3
- [@eslint/eslintrc](https://npm.io/package/@eslint/eslintrc.md) ^3.3.1
- [eslint-plugin-node](https://npm.io/package/eslint-plugin-node.md) ^11.1.0
- [eslint-plugin-react](https://npm.io/package/eslint-plugin-react.md) ^7.37.5
- [eslint-plugin-import](https://npm.io/package/eslint-plugin-import.md) ^2.32.0
- [eslint-plugin-promise](https://npm.io/package/eslint-plugin-promise.md) ^7.2.1
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) ^10.1.8
- [eslint-config-standard](https://npm.io/package/eslint-config-standard.md) ^17.1.0
- [eslint-plugin-prettier](https://npm.io/package/eslint-plugin-prettier.md) ^5.5.4
- [eslint-plugin-only-warn](https://npm.io/package/eslint-plugin-only-warn.md) ^1.1.0
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) ^8.40.0
- [eslint-plugin-react-hooks](https://npm.io/package/eslint-plugin-react-hooks.md) ^5.2.0
- [eslint-plugin-unused-imports](https://npm.io/package/eslint-plugin-unused-imports.md) ^4.2.0
- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) ^8.40.0
- [eslint-config-standard-typescript-prettier](https://npm.io/package/eslint-config-standard-typescript-prettier.md) ^6.0.0

## Recent versions

- 4.0.0 (latest) — 2025-08-20
- 1.2.3-5 (pre) — 2021-03-09
- 3.5.0 — 2023-06-28
- 3.4.0 — 2023-04-30
- 3.3.1 — 2022-10-25
- 3.3.0 — 2022-09-17
- 3.2.0 — 2022-07-05
- 3.1.0 — 2022-07-05
- 3.0.0 — 2022-07-05
- 2.4.0 — 2022-02-16
- 2.3.0 — 2022-02-16
- 2.2.0 — 2022-01-19
- 2.1.0 — 2022-01-18
- 2.0.0 — 2022-01-04
- 2.0.0-1 — 2022-01-04
- … 11 more at https://npm.io/package/eslint-config-nfour/versions

## README

# eslint-config-nfour

> Some opinionated style & type rules built on top of [eslint-config-standard-typescript-prettier](https://github.com/nfour/eslint-config-standard-typescript-prettier)
> 
> See [./.eslintrc.js](./.eslintrc.js)

## Why

**Pros**:
- [x] You do not need to install ANY eslint dependencies explicitly in your project
- [x] Eslint dependencies work together out of the box
- [x] Eslint config with simplified defaults

**Cons**:
- [x] If this package becomes outdated you may need to manually manage dependencies again

## Install

Install it.

```bash
pnpm add -D eslint-config-nfour
```

Wire it up.

```bash
echo "module.exports = require('eslint-config-nfour')" > .eslintrc.js

# OR with react rules...

echo "module.exports = require('eslint-config-nfour/.eslintrc.react')" > .eslintrc.js
```

Configure `.prettierrc.js` with something like:

```js
module.exports = {
  ...require('eslint-config-nfour/.prettierrc'),
  semi: false,
}
```

Done.

## How it works

Thanks to `require('@rushstack/eslint-patch/modern-module-resolution');`, plugins can be included relative to the configs, not the consuming project, so you don't need to install any eslint plugins/config peer dependencies.

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