New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@mskcc/prettier-config

Package Overview
Dependencies
Maintainers
0
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mskcc/prettier-config

Prettier config for MSKCC projects

latest
npmnpm
Version
2.7.3
Version published
Maintainers
0
Created
Source

@mskcc/prettier-config

A prettier shareable config for mskcc projects.

Installation

npm install --save-dev prettier // Actual prettier
npm install --save-dev @mskcc/prettier-config // configuration file

This is only a shareable configuration. It does not install Prettier or any other part of the tool chain.

Usage

Reference it in package.json using the prettier property:

{
  "name": "my-projects-name",
  "prettier": "@mskcc/prettier-config",
  "devDependencies" : {
    "@mskcc/prettier-config": "^0.7.0"
  }
}

If you don't want to use package.json, you can use any of the supported extensions to export a string:

// .prettierrc.json
"@mskcc/prettier-config"
// prettier.config.js or .prettierrc.js

module.exports = '@mskcc/prettier-config';

Adding custom rules

  • Create a JavaScript configuration file .prettierrc.js.
  • Import the configuration file.
  • Export the modified configuration
// .prettierrc.js
const prettierConfig = require('@mskcc/prettier-config');

module.exports = {
    ...prettierConfig,
    printWidth: 100
  };

Keywords

config

FAQs

Package last updated on 05 Feb 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