Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@qodestack/prettier-config

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qodestack/prettier-config

A thorough prettier config you can use for new projects

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

How to use

Install this package:

bun add -D @qodestack/prettier-config

Option 1 - your project's package.json (no plugin support)

Add this line to your package.json file:

"prettier": "@qodestack/prettier-config"

Option 2 - plugin support

Use a prettier.config.js file with the following content (the plugin used here is just an example):

import qodeStackConfig from '@qodestack/prettier-config'

export default {
  ...qodeStackConfig,
  plugins: ['prettier-plugin-tailwindcss'],
}

From the Prettier docs:

https://prettier.io/docs/en/configuration

You can configure Prettier via (in order of precedence):

  • A "prettier" key in your package.json, or package.yaml file.
  • A .prettierrc file written in JSON or YAML.
  • A .prettierrc.json, .prettierrc.yml, .prettierrc.yaml, or .prettierrc.json5 file.
  • A .prettierrc.js, or prettier.config.js file that exports an object using export default or module.exports (depends on - the type value in your package.json).
  • A .prettierrc.mjs, or prettier.config.mjs file that exports an object using export default.
  • A .prettierrc.cjs, or prettier.config.cjs file that exports an object using module.exports.
  • A .prettierrc.toml file.

Keywords

FAQs

Package last updated on 06 Jan 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

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