npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ubic/eslint-config

v9.1.0

Published

Корпоративная конфигурация ESLint для проектов.

Readme

UBIC ESLint config

Корпоративная конфигурация ESLint для проектов.

Покрывает все нестилистические стандартные правила ESLint.

Установка

Установить конфиг и пакеты для линтера и форматера:

yarn add -D @ubic/eslint-config eslint prettier
# или
npm install -D @ubic/eslint-config eslint prettier

Требования

Пакет поставляется как ESM. В конфиге на CommonJS он тоже работает - см. пример ниже, - но подключается там иначе.

Если в проекте есть tsconfig.json, moduleResolution должен быть node16, nodenext или bundler: старый node не понимает подпути пакета.

Гайды

  • Обновляетесь с 8.x? Смотрите гайд по миграции.

  • Ставите конфиг на проект с историей и получили пачку ошибок? В гайде по внедрению три способа раскатать его постепенно и критерии, какой выбрать.

Использование

Примеры ниже кладут в eslint.config.js, по умолчанию в корень проекта.

Каждая среда подключается своим подпутём - @ubic/eslint-config/javascript, /typescript, /react, /vue, /jest, /node - и грузит только то, что ей нужно: проекту на чистом JavaScript не приходится загружать TypeScript и плагины React с Vue. Общего входа @ubic/eslint-config нет.

Javascript

import javascript from '@ubic/eslint-config/javascript';

export default javascript;

Typescript

typescript уже включает в себя javascript, отдельно подключать его не нужно.

import typescript from '@ubic/eslint-config/typescript';

export default typescript;

React.js

import javascript from '@ubic/eslint-config/javascript';
import react from '@ubic/eslint-config/react';

export default [...javascript, ...react];

React.js + Typescript

import typescript from '@ubic/eslint-config/typescript';
import react from '@ubic/eslint-config/react';

export default [...typescript, ...react];

Vue.js

При использовании vue-cli:

import javascript from '@ubic/eslint-config/javascript';
import vue from '@ubic/eslint-config/vue';

export default [...javascript, ...vue];

Конфиг для Vue тянет за собой парсер TypeScript - без него не разобрать <script lang="ts">. Проекту на чистом JavaScript он тоже достанется.

В случае, если используется другое окружение, необходимо так же указать путь до файла конфигурации webpack:

import javascript from '@ubic/eslint-config/javascript';
import vue from '@ubic/eslint-config/vue';
import { importXResolverCompat } from 'eslint-plugin-import-x';
import webpackResolver from 'eslint-import-resolver-webpack';

export default [
  ...javascript,
  ...vue,
  {
    parserOptions: {
      parser: '@babel/eslint-parser',
    },
    settings: {
      'import-x/resolver-next': [
        importXResolverCompat(webpackResolver, {
          config: './webpack.config.js',
        }),
      ],
    },
  },
];

Jest

Добавляют к основному конфигу, правила действуют только на файлы *.spec.* и *.test.*:

import typescript from '@ubic/eslint-config/typescript';
import jest from '@ubic/eslint-config/jest';

export default [...typescript, ...jest];

Node

Добавляют к основному конфигу, включает глобальные переменные Node:

import typescript from '@ubic/eslint-config/typescript';
import node from '@ubic/eslint-config/node';

export default [...typescript, ...node];

CommonJS

Конфиг на CommonJS (eslint.config.cjs или eslint.config.js в проекте без "type": "module") ESLint поддерживает, пакет в нём работает. Но require ESM-модуля отдаёт не сам конфиг, а объект вокруг него, поэтому нужен .default - без него линт падает на is not iterable:

const typescript = require('@ubic/eslint-config/typescript').default;
const react = require('@ubic/eslint-config/react').default;

module.exports = [...typescript, ...react];

Используемые плагины

Все плагины упаковываются в пакет конфига, устанавливать их в проектах не нужно.

Разработка

Процесс разработки подробно описан в CONTRIBUTING.md