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

@tailor-platform/eslint-plugin-sdk

v0.2.0

Published

Lint rules for Tailor Platform SDK applications

Readme

@tailor-platform/eslint-plugin-sdk

Lint rules for applications built with @tailor-platform/sdk. The plugin uses the ESLint v9 plugin API and can run with either ESLint or Oxlint.

Installation

Install the plugin with your linter:

pnpm add --save-dev @tailor-platform/eslint-plugin-sdk oxlint

Oxlint

Add the plugin and its rules to .oxlintrc.json:

{
  "jsPlugins": [
    {
      "name": "tailor-sdk",
      "specifier": "@tailor-platform/eslint-plugin-sdk"
    }
  ],
  "rules": {
    "tailor-sdk/no-api-prefix-in-path-pattern": "warn",
    "tailor-sdk/no-execute-script-arg-stringify": "warn",
    "tailor-sdk/no-unconditional-permit": "warn"
  }
}

Oxlint JavaScript plugins are currently alpha. These rules use syntax and import binding analysis only; they do not require type-aware custom rule support.

ESLint

Use the recommended flat config with ESLint v9 or later:

import tailorSdk from "@tailor-platform/eslint-plugin-sdk";

export default [tailorSdk.configs.recommended];

Rules

no-api-prefix-in-path-pattern (warning)

HTTP adapter path patterns are matched after the platform's /api prefix.

Incorrect:

export default createHttpAdapter({
  pathPattern: "/api/orders/*",
});

Correct:

export default createHttpAdapter({
  pathPattern: "/orders/*",
});

no-execute-script-arg-stringify (warning)

executeScript's arg option is serialized internally, so passing an already-stringified value double-encodes it.

Incorrect:

await executeScript({ ...opts, arg: JSON.stringify({ a: 1 }) });

Correct:

await executeScript({ ...opts, arg: { a: 1 } });

The rule follows arg through a const variable (including one holding the JSON.stringify(...) call itself) to catch indirect forms, and recognizes named and namespace imports of executeScript from @tailor-platform/sdk/cli.

no-unconditional-permit (warning)

Permission entries with empty conditions and permit: true grant access to every request, as do the unsafeAllowAll* constants. Use them only during local development.

Incorrect:

export default db.type("User", fields).permission({
  create: [{ conditions: [], permit: true }],
  // ...
});

export const defaultPermission = unsafeAllowAllTypePermission;

Correct:

export default db.type("User", fields).permission({
  create: [{ conditions: [[{ user: "role" }, "=", "ADMIN"]], permit: true }],
  // ...
});

The rule checks .permission() / .gqlPermission() on db.type() chains and the permission option of defineIdp(), including values defined as const in the same file.

The rules recognize named and namespace imports from @tailor-platform/sdk, including local import aliases. Same-named functions imported from other packages are ignored.