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

@kkulebaev/tsconfig

v1.0.0

Published

Shared TypeScript config presets for Vue 3 + Vite + vue-tsc projects

Readme


Install

pnpm add -D @kkulebaev/tsconfig typescript

Usage

Корневой tsconfig.json проекта заменяется на:

{
  "extends": "@kkulebaev/tsconfig/vue",
  "include": ["src/**/*", "env.d.ts"],
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@/*": ["./src/*"]
    }
  }
}

В локальном tsconfig.json остаются только project-specific поля (paths, baseUrl, types, include, exclude). Все флаги, уже заданные пресетом, удаляются.

Included flags

| Flag | Value | Rationale | |------|-------|-----------| | target | ES2023 | Современный JavaScript output; покрывает ES2023-методы (например, Array.prototype.toReversed) | | module | ESNext | Native ESM-выхлоп для bundler'а Vite — import/export без транспайла в CommonJS, поддержка top-level await и динамического import() как промиса | | moduleResolution | Bundler | Алгоритм резолва Vite/esbuild — учитывает package.json exports/conditions, поддерживает paths, не требует обязательных расширений в импортах, без legacy node10 fallback'ов. Требует TS 5.0+ | | lib | ["ES2023","DOM","DOM.Iterable"] | ES2023 — встроенные типы ES2023 (Array.prototype.toReversed/toSorted/with, Symbol.dispose, hashbang grammar). DOM — браузерные API (Document, Element, Window, fetch, localStorage и т.д.). DOM.Iterable — итераторы DOM-коллекций (NodeList[Symbol.iterator], FormData.entries(), Headers.entries(), URLSearchParams.entries()) | | jsx | preserve | JSX-трансформацию выполняет Vue SFC compiler | | strict | true | Включает все strict-флаги: noImplicitAny, strictNullChecks, strictFunctionTypes, strictBindCallApply, strictPropertyInitialization, noImplicitThis, useUnknownInCatchVariables, alwaysStrict | | noFallthroughCasesInSwitch | true | Предотвращает случайные fallthrough в switch-блоках | | noImplicitReturns | true | Все ветки функции должны возвращать значение (если есть хотя бы один return value). Ловит забытый return в if/else | | noImplicitOverride | true | Требует override keyword при переопределении методов класса | | noErrorTruncation | true | TS не обрезает длинные error-сообщения — облегчает дебаг complex generic-типов | | noUnusedLocals | true | Ошибка на неиспользуемые локальные переменные | | noUnusedParameters | true | Ошибка на неиспользуемые параметры функций (префикс _ разрешён) | | noUncheckedIndexedAccess | false | Явно выключен — польза от пометки T \| undefined при индексном доступе сомнительна относительно количества borrow-чек и !-assertion'ов, которые появляются в коде | | useDefineForClassFields | true | Поля класса инициализируются через Object.defineProperty (ES native) | | verbatimModuleSyntax | true | Type-only импорты должны быть явные (import type { Foo }) | | esModuleInterop | true | Runtime-флаг: разрешает default-импорт CommonJS-модулей (import fs from 'fs'). Без него потребовался бы import * as fs from 'fs'. Меняет emitted JS — добавляет helper для unwrap'а default-экспорта | | allowSyntheticDefaultImports | true | Type-level комплемент esModuleInterop: typecheck не блокирует default-импорт модуля без явного default export. На runtime не влияет, нужен только для согласия компилятора | | forceConsistentCasingInFileNames | true | Защищает от cross-OS багов с регистром в импортах | | resolveJsonModule | true | Типизированные импорты .json-файлов | | isolatedModules | true | Обязательно для single-file transpilation модели Vite (const enum несовместим) | | skipLibCheck | true | Пропускает type-check .d.ts файлов в node_modules | | allowImportingTsExtensions | true | Разрешает import './foo.ts' (скрипты, сгенерированный код) | | noEmit | true | Идёт в паре с предыдущим — tsc только type-check'ает, JS эмитят Vite/esbuild |

Compatibility

Пресет рассчитан на --noEmit stack: JavaScript эмитят Vite/esbuild, vue-tsc используется только для type-check.

  • Vue 3 + Vite + vue-tsc: полностью поддержано, battle-tested.
  • TypeScript: требуется >=5.0 (peerDependency) — exports-based extends resolution и массивный extends появились в TS 5.
  • Runtime: target: ES2023 требует Chrome 110+, Safari 16.4+, Node 20+. Vite может занижать через build.target в vite.config.ts.
  • Проекты, эмитящие через tsc: совместимость не гарантируется — требуется явный override noEmit: false и пересмотр каждого флага.

Changelog

См. CHANGELOG.md или GitHub Releases — версии генерируются автоматически через release-please на основе Conventional Commits.

License

MIT © Konstantin Kulebaev