New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

pkg-typescript-plugin-prettier

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pkg-typescript-plugin-prettier

[![npm version](https://badge.fury.io/js/pkg-typescriptt-plugin-prettier.svg)](https://badge.fury.io/js/pkg-typescript-plugin-prettier) [![License: ISC](https://img.shields.io/badge/License-ISC-blue.svg)](https://opensource.org/licenses/ISC) [![TypeScript

latest
npmnpm
Version
0.3.31
Version published
Maintainers
1
Created
Source

Prettier plugin for pkg-typescript

npm version License: ISC TypeScript

A pkg-typescript plugin for Prettier code formatting that provides automatic code formatting scripts, dependencies, and configuration.

Overview

This plugin adds Prettier code formatting functionality to pkg-typescript projects, including a format script, dependency management, and a preconfigured Prettier setup with import organization.

Features

Scripts

  • format - Formats all files in the project using Prettier with silent logging

Dependencies

Automatically manages these Prettier-related dependencies:

  • prettier (v3.6.2) - Core Prettier formatting engine
  • prettier-plugin-organize-imports (v4.1.0) - Plugin for organizing TypeScript/JavaScript imports

Prettier Configuration

Provides an opinionated Prettier configuration:

  • Semi-colons: Disabled (semi: false)
  • Print width: 80 characters
  • Quotes: Single quotes for JS/TS and JSX
  • Trailing commas: ES5 compatible
  • Indentation: 2 spaces (no tabs)
  • Import organization: Automatically organizes imports

Usage

Add this plugin to your pkg-typescript configuration:

export default {
  plugins: 'prettier',
}

Configuration

The plugin includes a default Prettier configuration, but you can override it by providing your own .prettierrc file in your project root.

Default Configuration

{
  "semi": false,
  "printWidth": 80,
  "singleQuote": true,
  "jsxSingleQuote": true,
  "trailingComma": "es5",
  "tabWidth": 2,
  "useTabs": false,
  "plugins": ["prettier-plugin-organize-imports"]
}

Development

yarn pkg:build    # Build the plugin
yarn install      # Install dependencies

License

ISC

FAQs

Package last updated on 25 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts