@ab.progr/prettier-config 中文文档教程
Installation
自定义更漂亮的配置
NPM
npm install @ab.progr/prettier-config --save-dev
or
npm i @ab.progr/prettier-config -D
YARN
yarn add @ab.progr/prettier-config --dev
or
yarn add @ab.progr/prettier-config -D
Usage
// if using .prettierrc or .prettierrc.json, add this line
"@ab.progr/prettier-config";
// to extend the configuration to overwrite some properties from the shared configuration use .prettierrc.js
module.exports = {
...require("@ab.progr/prettier-config"),
semi: false,
};
DEMO
Installation
Customized prettier config
NPM
npm install @ab.progr/prettier-config --save-dev
or
npm i @ab.progr/prettier-config -D
YARN
yarn add @ab.progr/prettier-config --dev
or
yarn add @ab.progr/prettier-config -D
Usage
// if using .prettierrc or .prettierrc.json, add this line
"@ab.progr/prettier-config";
// to extend the configuration to overwrite some properties from the shared configuration use .prettierrc.js
module.exports = {
...require("@ab.progr/prettier-config"),
semi: false,
};