# @lomray/eslint-config

> This package provides Lomray eslint config as an extensible shared config.

Latest version **7.0.0** (published 2026-09-05) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 60/100 (C)** — status: active.

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

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 7.0.0 |
| Published | 2026-09-05 |
| First published | 2021-06-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | ^22.13.0 \|\| >=24.0.0 |
| Dependencies | 8 |
| Unpacked size | 18.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Mikhail Yarmaliuk |
| Maintainers | matthew_patell |
| Keywords | eslint, eslintconfig, config, lomray, javascript, typescript, styleguide |

## Links

- npm: https://www.npmjs.com/package/@lomray/eslint-config
- Repository: https://github.com/Lomray-Software/eslint-config
- Issues: https://github.com/Lomray-Software/eslint-config/issues
- npm.io page: https://npm.io/package/@lomray/eslint-config

## Dependencies (8)

- [typescript-eslint](https://npm.io/package/typescript-eslint.md) ^8.69.0
- [eslint-plugin-lodash](https://npm.io/package/eslint-plugin-lodash.md) ^8.0.0
- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) ^4.2.0
- [eslint-plugin-unicorn](https://npm.io/package/eslint-plugin-unicorn.md) ^74.0.0
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) ^10.1.8
- [eslint-plugin-import-x](https://npm.io/package/eslint-plugin-import-x.md) ^4.17.1
- [eslint-plugin-prettier](https://npm.io/package/eslint-plugin-prettier.md) ^5.5.6
- [eslint-import-resolver-typescript](https://npm.io/package/eslint-import-resolver-typescript.md) ^4.4.5

## 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
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 7.0.0 (latest) — 2026-09-05
- 6.0.3 — 2026-03-18
- 6.0.2 — 2026-03-18
- 6.0.1 — 2026-03-18
- 5.0.3 — 2024-02-29
- 5.0.2 — 2024-02-29
- 5.0.1 — 2024-02-29
- 4.0.1 — 2023-11-24
- 4.0.0 — 2023-11-24
- 3.0.0 — 2023-05-09
- 2.0.2 — 2022-10-19
- 2.0.1 — 2022-07-14
- 2.0.0 — 2022-07-01
- 1.2.1 — 2022-05-27
- 1.2.0 — 2022-05-05
- … 8 more at https://npm.io/package/@lomray/eslint-config/versions

## README

# @lomray/eslint-config

Lomray's shared ESLint configuration for TypeScript projects.

## Install

Requires Node `^22.13.0 || >=24`, ESLint 10.4+, TypeScript 4.8.4–6.0 and Prettier 3.

```sh
npm install --save-dev @lomray/eslint-config eslint@^10.4 typescript@~6.0 prettier@^3
```

Create `eslint.config.js` in a project with a `tsconfig.json`:

```js
import lomray from '@lomray/eslint-config';

export default lomray.config();
```

The default scope is `src/**/*.{ts,tsx,mts,cts}`. Type-aware rules use TypeScript’s project service and the nearest `tsconfig.json`.
Your files must be included in that project. Set `languageOptions.parserOptions.tsconfigRootDir`
when the config runs from a different working directory.

## Customize

```js
import lomray from '@lomray/eslint-config';

export default lomray.config({
    files: ['src/**/*.ts', 'tests/**/*.ts'],
    ignores: ['src/generated/**'],
    rules: {
        'import-x/prefer-default-export': 'off',
    },
});
```

Overrides are merged after the presets, preserving their other rules and parser settings.
For full control, spread `lomray.recommended` into your own flat config; it has no file scope.
Use a standalone `{ ignores: ['build/**'] }` entry to ignore files globally.

## Migrate from v6

- Use ESLint 10.4+ and the Node versions listed above.
- Rename `import/*` rules and `import/*` resolver settings to `import-x/*`.
  The TypeScript resolver and import ordering remain configured.
- `config({ rules, languageOptions, settings })` now merges overrides instead of replacing
  those sections in every preset.
- Type checking now uses `parserOptions.projectService`. If you set an explicit `project`,
  set `projectService: false` in the same override.
- `.mts` and `.cts` sources are included by default.

## Develop

```sh
npm ci
npm test
npm run test:packed
npm audit
```

The release workflow runs these checks before publishing a changed package version.

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