# vue-linters-config

> Vue 3 linters config for eslint, prettier, stylelint

Latest version **0.5.10** (published 2026-10-24) · 0 weekly downloads

## Install

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

## Health

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

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

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

## Facts

| | |
|---|---|
| Version | 0.5.10 |
| Published | 2026-10-24 |
| First published | 2023-03-09 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=26.12.1 |
| Dependencies | 0 |
| Unpacked size | 17.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Aleksandr Dergunov |
| Maintainers | dergunovs |

## Links

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

## Recent versions

- 0.5.10 (latest) — 2026-10-24
- 0.5.9 — 2026-06-22
- 0.5.8 — 2026-06-21
- 0.5.7 — 2026-03-26
- 0.5.6 — 2026-03-26
- 0.5.5 — 2025-12-28
- 0.5.4 — 2025-09-07
- 0.5.3 — 2025-08-30
- 0.5.2 — 2025-08-30
- 0.5.1 — 2025-08-30
- 0.5.0 — 2025-08-30
- 0.4.13 — 2025-08-29
- 0.4.12 — 2025-08-29
- 0.4.11 — 2025-08-29
- 0.4.10 — 2025-08-29
- … 46 more at https://npm.io/package/vue-linters-config/versions

## README

# Конфиги eslint, stylelint, prettier

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

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

Конфиги для Vue3 Composition API (script setup) + TS + SCSS + CSS Module.

Редактор кода - VS Code с установленными плагинами ESLint, Prettier и Stylelint(не забыть в настройках добавить расширения файлов .vue и .scss).

## Установка

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

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

`npm i eslint @eslint/js typescript-eslint eslint-plugin-vue vue-eslint-parser eslint-plugin-import-x eslint-plugin-prettier eslint-plugin-sonarjs eslint-plugin-unicorn globals eslint-config-prettier eslint-import-resolver-typescript postcss-html prettier stylelint stylelint-order stylelint-config-recess-order stylelint-config-recommended-scss stylelint-config-recommended-vue stylelint-prettier --save-dev`

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

`"lint": "eslint **/*.{js,ts,vue} && stylelint **/*.{scss,vue}"`

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

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

eslint.config.js:

```
import path from 'node:path';
import js from '@eslint/js';
import { fileURLToPath } from 'node:url';
import { defineConfig } from 'eslint/config';
import tseslint from 'typescript-eslint';
import pluginVue from 'eslint-plugin-vue';
import vueParser from 'vue-eslint-parser';
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 'vue-linters-config';

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

export default defineConfig(
  js.configs.recommended,
  ...tseslint.configs.recommended,
  ...pluginVue.configs['flat/strongly-recommended'],
  pluginImportX.flatConfigs.recommended,
  pluginSonar.configs.recommended,
  pluginUnicorn.configs.recommended,
  pluginImportX.flatConfigs.typescript,

  ignores,

  parser(vueParser, tseslint.parser, dirname),

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

  pluginPrettierRecommended
);

```

prettier.config.js:

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

```

stylelint.config.js:

```
export { stylelint as default } from 'vue-linters-config';

```

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