2.0.0 • Published 7 months ago

@generationtux/prettier-config v2.0.0

Weekly downloads
201
License
ISC
Repository
-
Last release
7 months ago

@generationtux/prettier-config

Prettier config file for Generation Tux projects.

Requirements

  • Node.js >= 18.18.0
  • TypeScript >= 4.8.4 (if using TypeScript)
  • ESLint ^8.57.0 or ^9.0.0 (if using ESLint)

Setup

  1. Run npm i -D @generationtux/prettier-config
  2. Copy example/.prettierrc.js to .prettierrc.js in your project

Features

  • Configured with TypeScript support using @typescript-eslint/parser
  • Standard prettier configuration:
    • Arrow parentheses: always
    • End of line: 'lf'
    • JSX single quotes: false
    • Parser: 'typescript'
    • Print width: 140
    • Semi colons: true
    • Single quotes: true
    • Tab width: 2
    • Tabs: false
    • Trailing comma: ES5

Example Configuration

// .prettierrc.js
module.exports = require('@generationtux/prettier-config');
2.0.0

7 months ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.3

7 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago