Skip to content

Config: Add shared Prettier config as a published subpath #5

@PetarStoev02

Description

@PetarStoev02

Context

Each repo in the org currently maintains its own Prettier configuration. Pulling this into @w3-kit/config as a published subpath (e.g., @w3-kit/config/prettier) gives every repo a single source of truth and a one-line consumption pattern.

What to build

Add a prettier.config.cjs (or .json) to this repo exporting the project's preferred Prettier settings, then expose it via the package's exports map under ./prettier. Update the README to show how to consume it from any downstream repo:

// prettier.config.js
module.exports = require('@w3-kit/config/prettier')

Acceptance criteria

  • Prettier config exported from @w3-kit/config/prettier
  • package.json exports field updated
  • README documents consumption pattern
  • Existing TS/ESLint configs continue to work
  • New patch version published (or bump pending) to npm

Pointers

Complexity

🟢 Good first issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions