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

@synergyerp/frontend-standards

v1.9.9

Published

SynergyERP frontend standards — ESLint, Prettier, commitlint, Husky, Vitest, TypeScript configs, modularization enforcement, and PR templates.

Readme

@synergyerp/frontend-standards

Shared frontend standards for all AO Holdings frontend projects. Provides unified configurations for ESLint, Prettier, commitlint, Husky Git hooks, TypeScript, Vitest, and modularization enforcement.

Quick Start

pnpm add -D @synergyerp/frontend-standards

📖 Starting a new child project? Use the SynergyERP Frontend Base Template and follow its CHILD_PROJECT_SETUP.md for onboarding (branch setup, CI/CD, secrets, deployment).

What's Included

| Config | File | Description | | -------------- | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------ | | ESLint v9 | eslint.config.js | Flat config with naming, imports, React, boundaries, barrel-file enforcement, console/debugger bans, accessibility | | Prettier | prettier.config.js | Shared formatting rules with prettier-plugin-organize-imports | | commitlint | commitlint.config.js | Conventional commit enforcement | | TypeScript | tsconfig.base.json | Strict mode base config with path aliases (@/*) | | Vitest | vitest.config.base.ts | JSDOM, coverage thresholds (80/75/80/80), per-file enforcement | | VS Code | .vscode/ | settings.json + extensions.json for consistent editor behavior | | Husky | .husky/ | pre-commit (lint-staged), commit-msg (commitlint), pre-push (full checks) | | Modularization | scripts/check-modularization.mjs | Domain structure, barrel file, and flat-file validator | | PR Template | .github/PULL_REQUEST_TEMPLATE.md | Standard PR checklist with modularization compliance |

Usage in Consumer Repos

1. Install

pnpm add -D @synergyerp/frontend-standards

2. Configure ESLint

// eslint.config.js
export { default } from '@synergyerp/frontend-standards';

To extend with project-specific rules:

// eslint.config.js
import baseConfig from '@synergyerp/frontend-standards';

export default [
  ...baseConfig,
  {
    rules: {
      // project-specific overrides
    },
  },
];

3. Configure TypeScript

// tsconfig.json
{
  "extends": "@synergyerp/frontend-standards/tsconfig.base.json",
  "compilerOptions": {
    // project-specific overrides
  },
}

4. Configure Vitest

// vitest.config.ts
import baseConfig from '@synergyerp/frontend-standards/vitest.config.base';
import { defineConfig, mergeConfig } from 'vitest/config';

export default mergeConfig(
  baseConfig,
  defineConfig({
    // project-specific overrides
  })
);

5. Add Scripts to package.json

{
  "scripts": {
    "prepare": "cp -r node_modules/@synergyerp/frontend-standards/.husky . 2>/dev/null && chmod +x .husky/* 2>/dev/null || true",
    "lint": "eslint --ext .ts,.tsx --max-warnings 0 .",
    "lint:fix": "eslint --ext .ts,.tsx . --fix",
    "format": "prettier --write \"src/**/*.{ts,tsx,json,css,md}\"",
    "format:check": "prettier --check \"src/**/*.{ts,tsx,json,css,md}\"",
    "check-types": "tsc --noEmit",
    "check-modularization": "node node_modules/@synergyerp/frontend-standards/scripts/check-modularization.mjs",
    "test": "vitest run",
    "test:watch": "vitest",
    "test:ci": "vitest run --coverage",
    "validate": "pnpm lint && pnpm check-modularization && pnpm check-types && pnpm test:ci"
  },
  "lint-staged": {
    "src/**/*.{ts,tsx}": ["eslint --fix --max-warnings 0", "prettier --write"],
    "src/**/*.{css,scss}": ["prettier --write"],
    "*.{json,md,yaml,yml}": ["prettier --write"]
  }
}

6. Set Up CI

Copy the CI workflow template:

mkdir -p .github/workflows
cp node_modules/@synergyerp/frontend-standards/.github/workflows/ci-template.yml .github/workflows/ci.yml

Edit as needed for your project.

7. Enable Git Hooks

pnpm prepare
pnpm add -D husky lint-staged

8. Copy PR Template

mkdir -p .github
cp node_modules/@synergyerp/frontend-standards/.github/PULL_REQUEST_TEMPLATE.md .github/

Enforcement Summary

| Rule | Tool | When | | ----------------------- | ---------------------------------------------------------- | ------------------------- | | Naming conventions | ESLint (id-length, camelcase, unicorn/filename-case) | Editor + pre-commit + CI | | Import order | ESLint (import/order) | Editor + pre-commit + CI | | Domain modularization | ESLint (boundaries/*) + check-modularization.mjs | Pre-push + CI | | Barrel file enforcement | ESLint (import/no-internal-modules) | Pre-push + CI | | Console/debugger bans | ESLint (no-console, no-debugger) | Pre-push + CI | | Conventional commits | commitlint | Commit + CI (anti-bypass) | | Type safety | TypeScript (tsc --noEmit) | Pre-push + CI | | Code formatting | Prettier | Editor + pre-commit + CI | | Test coverage | Vitest (80% lines, 75% branches, 80% funcs, 80% stmts) | Pre-push + CI | | Security audit | pnpm audit --audit-level=high | CI | | PR standards | PR template checklist | Code review |

Versioning

This package follows Semantic Versioning. Bump the version and push a tag to publish:

npm version patch   # or minor, major
git push --follow-tags

Related Documents