# fastify-linters-config

> fastify linters config for eslint and prettier

Latest version **0.3.6** (published 2026-06-22) · 0 weekly downloads

## Install

```sh
npm install fastify-linters-config
pnpm add fastify-linters-config
yarn add fastify-linters-config
bun add fastify-linters-config
```

## Health

**Score 45/100 (D)** — status: active.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; low quality score; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.3.6 |
| Published | 2026-06-22 |
| First published | 2023-08-30 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=25.4.0 |
| Dependencies | 0 |
| Unpacked size | 12.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Aleksandr Dergunov |
| Maintainers | dergunovs |

## Links

- npm: https://www.npmjs.com/package/fastify-linters-config
- npm.io page: https://npm.io/package/fastify-linters-config

## Recent versions

- 0.3.6 (latest) — 2026-06-22
- 0.3.5 — 2026-06-22
- 0.3.4 — 2026-06-21
- 0.3.3 — 2026-03-26
- 0.3.2 — 2026-03-26
- 0.3.1 — 2025-09-07
- 0.3.0 — 2025-08-30
- 0.2.7 — 2025-08-29
- 0.2.6 — 2025-08-29
- 0.2.5 — 2025-08-29
- 0.2.4 — 2025-08-29
- 0.2.3 — 2025-08-29
- 0.2.2 — 2025-08-27
- 0.2.1 — 2025-08-27
- 0.2.0 — 2025-08-27
- … 17 more at https://npm.io/package/fastify-linters-config/versions

## README

# Конфиги eslint и prettier для fastify

[npm](https://www.npmjs.com/package/fastify-linters-config)

_Легко принимать свободу как должное, если никогда её не лишался. (Дик Чейни)_

Редактор кода - VS Code с установленными плагинами ESLint и Prettier.

## Установка

`npm i fastify-linters-config --save-dev`

Установка сторонних зависимостей:

`npm i @eslint/js eslint eslint-config-prettier eslint-import-resolver-typescript eslint-plugin-import-x eslint-plugin-prettier eslint-plugin-sonarjs eslint-plugin-unicorn globals typescript-eslint --save-dev`

В package.json добавить команду в секцию script для запуска npm run lint:

`"lint": "eslint **/*.{js,ts}"`

## Применение правил

В корневой папке создать файлы: eslint.config.js и prettier.config.js.

eslint.config.js:

```
import { fileURLToPath } from 'node:url';
import path from 'node:path';
import js from '@eslint/js';
import { defineConfig } from 'eslint/config';
import tseslint from 'typescript-eslint';
import pluginImportX from 'eslint-plugin-import-x';
import pluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import pluginSonar from 'eslint-plugin-sonarjs';
import pluginUnicorn from 'eslint-plugin-unicorn';
import globals from 'globals';
import { parser, options, ignores, settings, rules } from 'fastify-linters-config';

const dirname = path.dirname(fileURLToPath(import.meta.url));

export default defineConfig(
  js.configs.recommended,
  ...tseslint.configs.recommended,
  pluginSonar.configs.recommended,
  pluginUnicorn.configs.recommended,
  pluginImportX.flatConfigs.recommended,
  pluginImportX.flatConfigs.typescript,

  ignores,

  parser(tseslint.parser, dirname),

  { ...options(globals), ...settings, ...rules },

  pluginPrettierRecommended
);

```

prettier.config.js:

```
export { prettier as default } from 'fastify-linters-config';

```

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