2.0.0 • Published 7 months ago
@generationtux/prettier-config v2.0.0
@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
- Run
npm i -D @generationtux/prettier-config - Copy
example/.prettierrc.jsto.prettierrc.jsin 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');