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

@application-kit/lint-config

v0.5.1

Published

Пресет ESLint приложения на пакетах @application-kit: flat-config с границами слоёв, разрешёнными подпутями пакетов и запретами UI-вендора

Readme

@application-kit/lint-config

Пресет ESLint приложения на пакетах @application-kit: flat-config — база @libs-for-dev/eslint-rules, общестековые настройки, разрешённые подпути пакетов, запреты UI-вендора и границы слоёв по раскладке приложения. Списков и путей продукта в пакете нет: модуль-оболочку и путь словаря ролей приложение передаёт параметрами, игноры своих каталогов и свои правила дописывает после пресета.

Установка

yarn add --dev @application-kit/lint-config

Peer-зависимости: eslint, @libs-for-dev/eslint-rules. Пакет только ESM: его грузит ESM-конфиг eslint.config.ts.

Входы

| Вход | Для чего | Тянет | |------|----------|-------| | @application-kit/lint-config | defineApplicationEslintConfig, defineRestrictedImportBlocks, ApplicationEslintConfigOptionsInterface | @libs-for-dev/eslint-rules, @application-kit/ui/lint |

ESLint

import { defineApplicationEslintConfig } from '@application-kit/lint-config'

export default [
  ...defineApplicationEslintConfig({ roleDictionary: '@/libs/shared/role', shellModule: 'client' }),
  { ignores: ['docs/', 'ops/static/'] },
]

Порядок блоков: база configs.* → общестековые настройки (complexity 7, allow-list import-x/no-internal-modules, .vue, миграции, shared/, спеки, мапперы и DTO, ключи tsconfig.json) → границы слоёв → порядок mutate в stryker.conf.json. Блоки продукта идут после пресета. Плоский конфиг заменяет правило целиком: правило, которое пресет уже задаёт тем же файлам, приложение переопределяет полным набором опций.

Границы слоёв (defineRestrictedImportBlocks) — набор запретов на область; следующий блок заменяет набор предыдущего для своих файлов, поэтому порядок блоков — часть правила:

| Область | Запреты no-restricted-imports | |---------|---------------------------------| | src/modules/*/** кроме оболочки | внутренности оболочки, второй путь словаря ролей, вендор, внутренности субмодулей | | src/modules/*/modules/** | то же без внутренностей субмодулей: изнутри субмодуля можно | | src/libs/** | импорт модулей, вендор, vue-i18n | | src/modules/<оболочка>/** | второй путь словаря ролей, вендор, vue-i18n | | src/**/*.vue | классы вендора — правилом vue/no-restricted-class | | src/modules/**/user-interface/client/** | набор корня модуля и серверный GraphQL-класс | | src/modules/<оболочка>/user-interface/** | набор оболочки, внутренности субмодулей и серверный GraphQL-класс |

Каждый запрет держит два якоря — алиас @/… и относительную форму того же пути. shellModule — имя папки в kebab-case, roleDictionary — путь вида @/<полка>/<путь> из таких имён; иное значение роняет сборку конфига.

Allow-list подпутей @application-kit/* спека пакета сверяет с exports пакетов монорепы в обе стороны: новый вход пакета без записи и запись без входа краснеют в CI монорепы.

Вендор

Шаблоны вендора — строка импорта, CSS-класс, разрешённые подпути — и имена обёрток полей для vuejs-accessibility/label-has-for пресет берёт из @application-kit/ui/lint. Смена вендора — релиз ui: конфиг приложения не меняется.