New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@baltpeter/prettier-config

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@baltpeter/prettier-config

The Prettier config Benjamin Altpeter uses in his projects.

  • 3.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@baltpeter/prettier-config

The Prettier config I use for my projects.

This package contains the Prettier config I use for my projects. You probably don't want to use this unless you're working on a project with me. Starting with version 3.0.0, it is designed for Prettier 3.0.

Usage

Install this config its peer dependencies:

yarn add --dev @baltpeter/prettier-config prettier typescript

Then, add the following to your package.json:

{
    "prettier": "@baltpeter/prettier-config"
}

Making local changes to the config

If you need to make local changes to the config in a project, most probably to add another plugin, you need to create a .prettierrc.js file in the root folder and extend the base config like this for example:

import baseConfig from '@baltpeter/prettier-config' assert { type: 'json' };

/** @type {import('prettier').Config} */
export default {
    ...baseConfig,

    plugins: [...baseConfig.plugins, 'prettier-plugin-astro'],

    overrides: [
        {
            files: '*.astro',
            options: {
                parser: 'astro',
            },
        },
    ],
};

Keywords

FAQs

Package last updated on 23 May 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc