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

@daikolabs/prettier-config

v1.1.0

Published

Daiko Labs shared Prettier configuration

Downloads

9

Readme

@daikolabs/prettier-config

Daiko Labs shared Prettier configuration (shareable config).

For the official approach, see Prettier docs: Sharing configurations.

What this config includes

Bundled plugins

This package bundles the plugins it uses (so consumers only need to install prettier).

| Plugin | Version (bundled) | Why it’s included | Link | | --- | --- | --- | --- | | prettier-plugin-organize-imports | 4.3.0 | Organizes/sorts imports during formatting. | | | @prettier/plugin-oxc | 0.1.0 | Adds the OXC-based parser for faster JS/TS formatting. | prettier/prettier packages/plugin-oxc |

Prettier options (from index.ts)

| Option | Value | Notes | | --- | --- | --- | | printWidth | 120 | Maximum line length before wrapping. | | arrowParens | "avoid" | Omits parentheses when possible for single-arg arrow functions. | | useTabs | false | Uses spaces for indentation. | | tabWidth | 2 | Indentation size. | | singleQuote | false | Uses double quotes where applicable. | | bracketSpacing | true | Prints spaces between brackets in object literals. | | bracketSameLine | false | Places the closing bracket of JSX/HTML on a new line. | | experimentalTernaries | true | Enables experimental ternary formatting. | | plugins | ["prettier-plugin-organize-imports", "@prettier/plugin-oxc"] | Plugins loaded by this config. |

Install

This package provides a shareable config and bundles the required plugins. Install prettier in the consumer project.

npm i -D @daikolabs/prettier-config prettier

Usage

Set it in package.json.

{
  "prettier": "@daikolabs/prettier-config"
}

Extending (overrides)

If you want to override only a subset of settings in the consumer project, create .prettierrc.mjs, import the base config, and spread it.

import base from "@daikolabs/prettier-config";

/** @type {import("prettier").Config} */
export default {
  ...base,
  // Example: override settings per project
  // semi: false,
};

Recommended additional plugins

Frontend projects (Tailwind CSS)

For frontend projects using Tailwind CSS, it’s recommended to also use prettier-plugin-tailwindcss to automatically sort Tailwind classes.

| Plugin | Install in the consumer project | Notes | | --- | --- | --- | | prettier-plugin-tailwindcss | npm i -D prettier-plugin-tailwindcss | Append it to plugins (it’s commonly recommended to keep it last). See tailwindlabs/prettier-plugin-tailwindcss. |

You can add other project-specific plugins in the same way (by extending and appending to plugins).

Example override that keeps the base plugins and adds Tailwind:

import base from "@daikolabs/prettier-config";

/** @type {import("prettier").Config} */
export default {
  ...base,
  plugins: [...(base.plugins ?? []), "prettier-plugin-tailwindcss"],
};

Development (TypeScript source)

The config is maintained in index.ts. On publish, we build dist/index.mjs (Prettier reads dist/index.mjs).

npm run build

Publishing (CI via GitHub Actions)

This repository uses semantic-release to automatically version and publish to npm on pushes to main (commit messages must follow Conventional Commits).

Note: semantic-release in this repo requires Node >=24.10.0 (the workflow pins Node 24.10.0).

Required environment variables (GitHub Actions)

The workflow passes these environment variables to semantic-release:

  • GITHUB_TOKEN: provided automatically by GitHub Actions (secrets.GITHUB_TOKEN).
    • Used to create GitHub releases / comments, and to push release commits (e.g. changelog).
  • NPM_TOKEN: must be configured in GitHub Repository Secrets.
    • Used by @semantic-release/npm to publish to npm.

Note: the workflow also sets NODE_AUTH_TOKEN to the same value as NPM_TOKEN for npm CLI compatibility. You only need to manage one secret (NPM_TOKEN).

One-time setup steps

  • npm:
    • This package is published to the @daikolabs scope (@daikolabs/prettier-config). Create an automation token (or access token) that has permission to publish under the @daikolabs organization.
    • Add it to GitHub Repository Secrets as NPM_TOKEN.
    • If the @daikolabs org enforces 2FA for publishing, use an automation token (recommended) or follow your org policy for CI publishing.
  • GitHub:
    • Ensure the Actions workflow has permissions to write to contents (this repo’s release.yml requests contents: write).
    • Protect main as you like, but note releases run on push to main.

Release flow (what happens)

  • Write commits using Conventional Commits (examples):
    • feat: ... → minor release
    • fix: ... → patch release
    • docs: ... / chore: ... → patch release (configured in .releaserc.json)
  • Merge/push to main:
    • GitHub Actions runs npm ci, then npm run release.
    • semantic-release determines the next version, generates release notes, updates CHANGELOG.md, publishes to npm, and creates a GitHub release.