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

@matterlabs/prettier-config

Package Overview
Dependencies
Maintainers
6
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@matterlabs/prettier-config

This package provides Matter Labs' shared configuration for Prettier, ensuring a consistent coding style across projects

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.4K
increased by112.73%
Maintainers
6
Weekly downloads
 
Created
Source

@matterlabs/prettier-config

This package provides Matter Labs' shared configuration for Prettier, ensuring a consistent coding style across projects.

📦 Installation

npm i -D @matterlabs/prettier-config

OR

yarn add --dev @matterlabs/prettier-config

🚀 Usage

Update your package.json:

{
  ...
  "prettier": "@matterlabs/prettier-config"
  ...
}

OR

Update your .prettierrc.js or prettier.config.js file in the root of your project:

module.exports = {
  ...require('my-prettier-config'),
  // you can override or extend the config here if needed
};

📜 Rules Overview

Here's a quick overview of some of the primary rules:

  • Print Width: Maximum of 120 characters.
  • Tabs: Spaces are used over tabs.
  • Tab Width: 2 spaces for each indentation level.
  • Semicolons: Always required at the end of statements.
  • Trailing Commas: ES5 style. This means trailing commas are used for multiline object and array literals, but not for function parameters or arguments.
  • Quotes: Double quotes are mandatory, including for JSX.
  • Bracket Spacing: Spaces between brackets in object literals.

For a detailed list of all rules and configuration details, please refer to the source configuration.

🙌 Contributing

If you find any issues or have suggestions, feel free to open an issue or a pull request in the repository.

📜 License

This project is licensed under MIT and APACHE 2.0.

Keywords

FAQs

Package last updated on 30 Aug 2023

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