@igorskyflyer/prettier-config
v1.0.1
Published
💅🏼 Prettier config for JS/TS projects. Single quotes, no semis, LF, trailing commas. 💄
Maintainers
Readme
Table of Contents
- ✨ Features
- 🕵🏼 Usage
- ⚙️ Implementation
- 🎯 Motivation
- 📝 Changelog
- 🪪 License
- 💖 Support
- 🧬 Related
- 👨🏻💻 Author
Features
- ⚡ Zero-config setup - extend and go
- 🔤 Single quotes for JS/TS, double quotes for JSX
- 🚫 No semicolons, with trailing commas - cleaner diffs
- 📏 2-space indentation, LF line endings, 80-char print width
- 📦 Covers JS, TS, JSX, TSX, JSON, HTML, CSS, Vue and more
- 🎯 All valid Prettier options explicitly set - no surprises
- 🔲 Object wrap preserved - inline objects stay inline, expanded stay expanded
- 🔒 Experimental options locked in - no unintended behavior on upgrades
Usage
Install it by executing any of the following, depending on the preferred package manager:
bun add -d @igorskyflyer/prettier-configpnpm add -D @igorskyflyer/prettier-configyarn add -D @igorskyflyer/prettier-confignpm i -D @igorskyflyer/prettier-configThen, reference it in the package.json:
{
"prettier": "@igorskyflyer/prettier-config"
}If overrides are needed, use a prettier.config.mjs instead:
import config from '@igorskyflyer/prettier-config'
/** @type {import('prettier').Config} */
export default {
...config,
// overrides
}Implementation
Every valid Prettier option is explicitly set - no implicit defaults, no silent behavior on upgrades. The config enforces single quotes, no semicolons, trailing commas, LF line endings and 2-space indentation across all supported file types. Object literals are preserved as-is. Experimental options are locked to their current defaults to prevent unintended formatting shifts when Prettier promotes them to stable.
Motivation
Every project needs a Prettier config. Most end up with the same decisions after the same back-and-forth - quotes, semis, commas, line endings. This package makes those decisions once, documents them explicitly and ships them as a single dependency. Drop it in, extend it and move on.
Changelog
Read about the latest changes in the CHANGELOG.
License
Licensed under the MIT license.
Support
Related
This package is part of the dotfiles DX config suite - a curated index of independently installable configuration packages for linting, formatting, editing, JS/TS, React, Vue and many more.
Other related packages
✍🏼 A CLI tool for adding an opinionated EditorConfig to any project. 🐭
👽 An opinionated Biome configuration for modern JavaScript and TypeScript projects. Strict linting, consistent formatting, and performance-minded rules, all in one shareable config. Code like igorskyflyer does! 🐺
🐌 Zing is a C# style String formatter for JavaScript that empowers Strings with positional arguments - composite formatting. 🚀
✨ Pixel-perfect code formatting opinions, oxfmt-powered and ready to extend. ⚓
🧠 Zep is a zero-dependency, efficient debounce module. ⏰
Author
Created by Igor Dimitrijević (@igorskyflyer).
