Skip to content

andrewmcodes/js-configs

Repository files navigation

js-configs

js-configs

Documentation CI @andrewmcodes/prettier-config on npm @andrewmcodes/commitlint-config on npm License: MIT Maintained with Changesets

Shareable JavaScript and Node.js tooling configuration packages by Andrew Mason.

This is a lightweight pnpm workspace monorepo. Each package is independently versioned and published to npm. The root package is private and exists only for development tooling, CI, and release automation.

Packages

Package Description
@andrewmcodes/prettier-config Shareable Prettier configuration.
@andrewmcodes/commitlint-config Shareable commitlint configuration.

Development

This repo uses mise to provision Node.js (pinned in .node-version) and to enable Corepack, which installs the pnpm version pinned in package.json. pnpm manages the workspace.

mise install # installs Node.js and enables Corepack-managed pnpm
pnpm install

Common checks:

pnpm lint
pnpm test
pnpm format:check

Fix formatting:

pnpm format

Releases

Versioning and publishing are handled by Changesets.

  1. Make a change to a package.
  2. Run pnpm changeset and describe the change.
  3. Open a pull request including the generated changeset.
  4. CI validates install, lint, test, format, and changeset status.
  5. After merge to main, Changesets opens a release PR that bumps versions and updates changelogs.
  6. Merging the release PR publishes the changed packages to npm via Trusted Publishing with provenance.

The root package is never published, and only changed packages are released.

Contributing

  • Use Conventional Commits for commit messages.
  • Add a changeset for any user-facing package change.
  • Keep packages small, directly publishable, and free of unnecessary build steps.

See AGENTS.md for the full repository rules.

License

MIT © Andrew Mason

About

Shareable JavaScript and Node.js tooling configuration packages (Prettier, commitlint) — a pnpm + Changesets monorepo.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages