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

@boltz.one/eslint-config

v0.1.1

Published

ESLint config dùng chung cho monorepo Boltz One: base, next-js, react-internal

Readme

@boltz.one/eslint-config

Bộ ESLint config (flat config, ESLint v9+) dùng chung cho hệ sinh thái Boltz One. Đóng gói sẵn các plugin và rule thống nhất cho TypeScript, React, Next.js và Turborepo nên app/lib tiêu thụ chỉ cần extends một dòng.

Cài đặt

bun add -d @boltz.one/eslint-config eslint typescript
# hoặc: npm i -D @boltz.one/eslint-config eslint typescript

eslinttypescript được khai báo là peerDependencies (consumer tự cài). Toàn bộ plugin (typescript-eslint, eslint-plugin-react, @next/eslint-plugin-next, …) đã là dependencies của package nên được cài tự động — không cần khai báo thủ công.

Các config khả dụng

| Entry point | Export | Dùng cho | | --- | --- | --- | | @boltz.one/eslint-config/base | config | Mọi package TypeScript (Node/library). Nền tảng cho 2 config còn lại. | | @boltz.one/eslint-config/react-internal | config | Thư viện/app React (không phải Next.js). | | @boltz.one/eslint-config/next-js | nextJsConfig | App Next.js. |

base

  • @eslint/js recommended + typescript-eslint recommended.
  • eslint-config-prettier (tắt các rule format xung đột với Prettier).
  • eslint-plugin-turbo: cảnh báo biến môi trường chưa khai báo trong turbo.json.
  • eslint-plugin-only-warn: hạ mọi lỗi xuống mức warn để DX mượt hơn.
  • @typescript-eslint/no-unused-vars: bỏ qua biến/tham số/error có tiền tố _.
  • Bỏ qua dist/**.

react-internal

Kế thừa base và bổ sung: eslint-plugin-react (flat recommended), eslint-plugin-react-hooks, globals browser + serviceworker, tắt react/react-in-jsx-scopereact/no-unescaped-entities.

next-js

Kế thừa base và bổ sung cấu hình React + @next/eslint-plugin-next (recommended + core-web-vitals), globals serviceworker, ignore mặc định của Next (.next/**, out/**, build/**, next-env.d.ts).

Sử dụng

ESLint v9 dùng flat config. Tạo eslint.config.js (hoặc .mjs) ở gốc package.

Package Node / library:

import { config } from "@boltz.one/eslint-config/base";

/** @type {import("eslint").Linter.Config[]} */
export default config;

Thư viện / app React:

import { config } from "@boltz.one/eslint-config/react-internal";

/** @type {import("eslint").Linter.Config[]} */
export default config;

App Next.js:

import { nextJsConfig } from "@boltz.one/eslint-config/next-js";

/** @type {import("eslint").Linter.Config[]} */
export default nextJsConfig;

Có thể nối thêm rule riêng:

import { config } from "@boltz.one/eslint-config/base";

export default [
  ...config,
  {
    rules: {
      "no-console": "warn",
    },
  },
];

Script gợi ý

{
  "scripts": {
    "lint": "eslint . --max-warnings 0"
  }
}

License

MIT