Yongmin Hong
9afee876a5
Summary: Not worthy of new release though. Signed-off-by: Yongmin Hong <revi@omglol.email> Test Plan: Browse the markdown in editor's preview mode Reviewers: O1 revi & automations, revi Reviewed By: O1 revi & automations, revi Differential Revision: https://issuetracker.revi.xyz/D337
40 lines
984 B
Markdown
40 lines
984 B
Markdown
# @revi/prettier-config
|
|
|
|
[![NPM Version](https://img.shields.io/npm/v/%40revi%2Fprettier-config?logo=npm&cacheSeconds=600)](https://www.npmjs.com/package/@revi/prettier-config)
|
|
[![GitHub License](https://img.shields.io/github/license/revi/sandbox?logo=apache&cacheSeconds=600)](https://github.com/revi/sandbox/tree/master/npm/prettier-config)
|
|
|
|
This is [@revi](https://revi.xyz/)'s personal [prettier](https://prettier.io/docs/en/) config.
|
|
|
|
## Config
|
|
|
|
```js
|
|
const config = {
|
|
bracketSpacing: false,
|
|
bracketSameLine: true,
|
|
proseWrap: 'preserve',
|
|
singleQuote: true,
|
|
trailingComma: 'all',
|
|
overrides: [
|
|
{
|
|
files: '.arcconfig',
|
|
options: {parser: 'json'},
|
|
},
|
|
{
|
|
files: '.arclint',
|
|
options: {parser: 'json'},
|
|
},
|
|
{
|
|
files: '.arcunit',
|
|
options: {parser: 'json'},
|
|
},
|
|
{
|
|
files: '.imgbotconfig',
|
|
options: {parser: 'json'},
|
|
},
|
|
{
|
|
files: '.yamllint',
|
|
options: {parser: 'yaml'},
|
|
},
|
|
],
|
|
};
|
|
```
|