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

@kodehort/prettier-config

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kodehort/prettier-config

A curated set of prettier configurations that we use across our projects and can be used in your projects.

  • 3.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
114
increased by4.59%
Maintainers
0
Weekly downloads
 
Created
Source

prettier-config

npm version

prettier-config is a curated prettier configuration that can be across our projects and can be used in your projects. Rather than add this all to a template, it is included as a package enabling updates to be pulled forward into consuming projects.

Installation

  1. You'll first need to install Prettier:
npm install prettier --save-dev
  1. Next, install prettier-config, run the following command:
npm install --save-dev @kodehort/prettier-config

Or:

pnpm add @kodehort/prettier-config -D

Usage

To use prettier-config, you need to extend it in your prettier configuration file. Here's an example prettier.config.js file

import { baseConfig } from '@kodehort/prettier-config'

/** @type {import("prettier").Config} */
export default {
  ...baseConfig,
  /** Add your project specific configurations here */
}

FAQs

Module type of the repository has an impact in the configuration file

If the package is defined with type module in the package.json file, you need to use the .js extension for the configuration file. This is because the import statement is not supported in CommonJS files.

{
  "type": "module"
}
```

Otherwise you can use the `.mjs` extension for the configuration file.

Keywords

FAQs

Package last updated on 10 Oct 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