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

@ascend-innovations/prettier-config

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ascend-innovations/prettier-config

Ascend's base Prettier config

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

[Add cover image here]

Ascend's Prettier config for consistent formatting 💅


NPM version PRs welcome!

Installing

  1. Put a prettier.config.js (or any valid prettier config file) in your project root
  2. You can alternatively put the config in your package.json under the property "prettier":. This makes one less file in your project.
  3. Install dependencies and select the configuration you want (available configs listed below)

Default Configuration

The default install will install all required AND optional dependencies. You can safely remove un-needed packages without triggering a peer dependency warning if you aren't consuming the associated configs:

Install it with NPM: npx install-peerdeps --dev @ascend-innovations/prettier-config
Install it with Yarn: npx install-peerdeps --dev @ascend-innovations/prettier-config -Y\

Use it with no overrides:

module.exports = require('@ascend-innovations/prettier-config')

OR in package.json

"prettier: "@ascend-innovations/prettier-config"

Use it and allow overrides:

module.exports = {
    ...require('@ascend-innovations/prettier-config')
}

Notes: If you are using ESLint, you will want to add prettier as the last item in your extends array.

Svelte Configuration

Use it: Svelte is a bit finicky with Prettier setups and requires it's own plugin, so we have it as a separate export.

module.exports = {
    ...require('@ascend-innovations/prettier-config/svelte')
}

OR in package.json

"prettier: "@ascend-innovations/prettier-config/svelte"

FAQs

Package last updated on 29 Jan 2022

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