# @oncehub/eslint-config

> ESLint configuration for micro-services built using Node.js and TypeScript

Latest version **5.5.1** (published 2026-11-17) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 65/100 (B)** — status: active.

Positive: esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 5.5.1 |
| Published | 2026-11-17 |
| First published | 2020-04-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=18 |
| Dependencies | 4 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 0 |
| Author | Rajat Saxena |
| Maintainers | oncehub.admin |

## Links

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

## Dependencies (4)

- [@eslint/js](https://npm.io/package/@eslint/js.md) ^10.0.1
- [typescript-eslint](https://npm.io/package/typescript-eslint.md) ^8.72.1
- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) ^4.2.2
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) ^10.1.8

## Recent versions

- 5.5.1 (latest) — 2026-11-17
- 5.5.0 — 2026-10-23
- 5.4.0 — 2026-09-17
- 5.3.0 — 2026-07-03
- 5.2.1 — 2026-06-12
- 5.1.0 — 2026-04-30
- 5.0.4 — 2026-04-07
- 5.0.3 — 2026-03-27
- 5.0.1 — 2026-03-12
- 5.0.0 — 2026-02-24
- 4.3.0 — 2026-02-02
- 4.2.3 — 2025-07-29
- 4.2.2 — 2025-07-02
- 4.2.1 — 2025-07-01
- 4.2.0 — 2025-07-01
- … 20 more at https://npm.io/package/@oncehub/eslint-config/versions

## README

# eslint-config-oncehub

[![Build status](https://github.com/scheduleonce/eslint-config-oncehub/actions/workflows/node.js.yml/badge.svg)](https://github.com/scheduleonce/eslint-config-oncehub/actions) [![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)

> ESLint configuration for services built with Node.js and TypeScript.

The configuration exports and extends `@typescript-eslint/recommended`, `eslint-plugin-sonarjs`, `prettier` ESLint configurations.

It is compatible with ESlint >= v9 configuration format (flat config).

## Installation

To install this module, run the following command:

```sh
$ npm install --save-dev @oncehub/eslint-config
```

Note that it requires ESlint v9 and above.

## Usage

Import the package inside of an `eslint.config.js` file and add it into the exported array, like this:

```js
// eslint.config.js
import oncehub from "@oncehub/eslint-config";

export default [...oncehub];
```

## Development

### Tests

Run tests via `npm test`.
The tests are comparing the eslint configuration against a previously saved snapshot of the rules so if you are adding or removing any rule, make sure to update the tests.

As a byproduct, the tests are also checking that the configuration is valid and all is okay with it.
You can also further debug the config via:

```sh
$ npx eslint --debug -c index.js index.js
```

To generate a new rules snapshot file:

```sh
$ npx eslint --print-config index.js -c index.js > output.json
```

Copy the rules from the output file into `test/rules-snapshot.json`

### Deployment

Package is automatically published to npm when [creating a new release](.github/workflows/npm-publish.yml) on Github. Check out the release section in the repo. Read more about releases [here](https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository).

## License

This module is licensed under the MIT License. See the LICENSE file for details.

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