@addepar/prettier-config 中文文档教程

发布于 3 年前 浏览 7 项目主页 更新于 2 年前

@addepar/prettier-config

这是 Addepar 用于 Javascript 项目的 Prettier 配置。

Using the plugin

Installation

在您的项目中将插件安装为开发依赖项。

yarn add --dev @addepar/prettier-config

Configuration

.prettierrc.js 中重新导出配置

// .prettierrc.js
module.exports = require('@addepar/prettier-config');

@addepar/prettier-config

This is the Prettier config used for Javascript projects at Addepar.

Using the plugin

Installation

Install the plugin as a dev dependency in your project.

yarn add --dev @addepar/prettier-config

Configuration

Re-export the config in .prettierrc.js

// .prettierrc.js
module.exports = require('@addepar/prettier-config');
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文