🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@darcytech/prettier-config-darcytech

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@darcytech/prettier-config-darcytech

prettier-config-darcytech

latest
npmnpm
Version
2.2.1
Version published
Maintainers
1
Created
Source

@darcytech/prettier-config-darcytech

简介

Prettier 推荐配置

安装

npm install --save-dev @darcytech/prettier-config-darcytech prettier

用法

// .prettierrc.js
const config = require('@darcytech/prettier-config-darcytech');

module.exports = config;

最佳实践

如果当前ES版本不支持尾逗号或babel配置不支持尾逗号,建议将trailingComma配置为es5

// .prettierrc.js
const config = require('@darcytech/prettier-config-darcytech');

module.exports = {
  ...config,
  trailingComma: 'es5',
};

Keywords

prettier

FAQs

Package last updated on 20 Dec 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