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

@prata.ma/anvil-lint

v0.2.1

Published

Shared ESLint flat configuration for the Anvil workspace.

Downloads

456

Readme

@prata.ma/anvil-lint

Shared ESLint flat configuration for the Anvil workspace.

Overview

@prata.ma/anvil-lint owns the reusable ESLint config consumed across workspace packages. It wraps @antfu/eslint-config with the repo's baseline defaults, formatter behavior, markdown overrides, and package-level options for library-oriented packages.

Within the monorepo and for external consumers, packages consume this package through eslint.config.ts entrypoints instead of duplicating lint setup locally. The supported surface is intentionally small: the root package export and the @prata.ma/anvil-lint/base subpath used by package-local config files.

Installation

Install the package from npm when using the shared lint baseline outside this monorepo.

npm

{
  "devDependencies": {
    "@prata.ma/anvil-lint": "^0.0.0"
  }
}

Usage

The normal usage path is to import base from @prata.ma/anvil-lint/base inside a package-local eslint.config.ts, optionally adding package-specific config items after the shared baseline.

Library

import type { BaseReturn } from '@prata.ma/anvil-lint'
import { base } from '@prata.ma/anvil-lint/base'

const config: BaseReturn = base({
  type: 'lib',
})

export default config

Patterns

base() accepts Antfu config options and extra flat-config items, so packages can extend the shared baseline without reimplementing formatter or markdown behavior.

This package also uses the same pattern for its own eslint.config.ts:

import type { BaseReturn } from '@prata.ma/anvil-lint'
import { base } from '@prata.ma/anvil-lint/base'

const config: BaseReturn = base()

export default config

API

@prata.ma/anvil-lint exposes a narrow shared-config surface for workspace consumers.

Exports

  • @prata.ma/anvil-lint - re-exports base and the package's main public types
  • @prata.ma/anvil-lint/base - direct subpath for the shared base() config builder
  • base(options, ...configs) - returns the workspace ESLint flat config with repo defaults applied
  • BaseOptions, BaseReturn, BaseUserConfig - shared typing for package-local config files

Configuration

  • Default ignores include **/*.svg, build/**, and dist/**.
  • The shared baseline enables formatter support for CSS, HTML, and Markdown.
  • Markdown formatting is overridden to use a 4-space tab width and embeddedLanguageFormatting: 'off'.
  • Markdown lint rules explicitly disable markdown/no-multiple-h1.
  • TypeScript parser warnings for unsupported TS versions are suppressed in the shared baseline.

Development

Use the package-local scripts while working in @packages/anvil-lint, and keep shared lint behavior centralized here instead of reintroducing ad hoc package-level rule copies.

This package now participates in the repo's Changesets, npm publish, and GitHub Release automation as a package-scoped public surface. The package-local release:check script remains the focused validation contract for this package.

Commands

pnpm --filter @prata.ma/anvil-lint release:check
pnpm --filter @prata.ma/anvil-lint build
pnpm --filter @prata.ma/anvil-lint lint
pnpm --filter @prata.ma/anvil-lint test:type

Conventions

  • Keep the supported consumer contract centered on base() and the documented exports.
  • Prefer changing shared defaults here rather than layering repeated rule overrides across packages.
  • Preserve the built-output contract because package-local eslint.config.ts files consume @prata.ma/anvil-lint/base from package build output.

Status

This package is active and serves as the workspace's shared ESLint configuration boundary.

Maturity

@prata.ma/anvil-lint is active and publish-prepared as a reusable package.

Scope

The package currently supports the shared flat-config baseline, formatter behavior, markdown overrides, and typed config composition for workspace packages. It does not own package-specific lint rules that belong in consuming packages or separate ESLint plugin implementation work owned elsewhere.

Notes

  • @prata.ma/anvil-lint now ships a package CHANGELOG.md and participates in the repo's multi-package release workflow.
  • Consumers should use the documented @prata.ma/anvil-lint and @prata.ma/anvil-lint/base entrypoints only.
  • A fresh checkout should build the shared workspace packages before relying on package-local editor linting or direct package-level lint commands that import @prata.ma/anvil-lint/base from built output.