0.0.9 • Published 5 months ago

@alphaomega/prettier v0.0.9

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

Prettier Configuration

This package provides a shared Prettier configuration to enforce a consistent code style across your JavaScript and TypeScript projects.

Features

  • Enforces single quotes for strings.
  • Uses semi-colons at the end of statements.
  • Sets a tab width of 2 spaces for indentation.
  • Applies trailing commas where valid in ES5 (objects, arrays, etc.).
  • Ensures bracket spacing in object literals.
  • Uses spaces over tabs for indentation.
  • Etc.

Installation

To use this Prettier configuration in your project, follow these steps:

  1. Install the package:
yarn add @alphaomega/prettier-config --dev

Create a .prettierrc.js file in your project root (if not already present), and extend the configuration:

module.exports = {
  ...require('@alphaomega/prettier-config'),
  // You can override specific settings here if needed
};
0.0.9

5 months ago

0.0.8

6 months ago

0.0.7

6 months ago

0.0.6

6 months ago