npm(prettier-config): add README/author data, make prettier peerDependency

Summary:
Bump to 0.0.2.

For easier browsing...

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: `arc land`, and `npm publish`

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D310
This commit is contained in:
revi 2024-06-14 19:41:11 +09:00
parent 01e6487932
commit 41b70cb468
Signed by: revi
GPG key ID: 1EB4F6CEEA100E94
3 changed files with 51 additions and 7 deletions

View file

@ -0,0 +1,37 @@
# @revi/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'},
},
],
};
```

View file

@ -1,15 +1,24 @@
{ {
"$schema": "https://json.schemastore.org/package.json", "$schema": "https://json.schemastore.org/package.json",
"name": "@revi/prettier-config", "name": "@revi/prettier-config",
"version": "0.0.1", "version": "0.0.2",
"author": {
"name": "revi",
"email": "revi@omglol.email",
"url": "https://revi.xyz"
},
"description": "@revi's prettier configs", "description": "@revi's prettier configs",
"main": "prettier.config.js", "main": "prettier.config.js",
"dependencies": { "peerDependencies": {
"prettier": "^3.3.2" "prettier": "^3.3.2"
}, },
"scripts": {
"p:c": "prettier --check"
},
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/revi/sandbox/blob/master/npm-prettier-config" "url": "https://github.com/revi/sandbox.git",
"directory": "npm/prettier-config"
}, },
"bugs": { "bugs": {
"url": "https://revi.xyz/new" "url": "https://revi.xyz/new"
@ -18,9 +27,6 @@
"prettier" "prettier"
], ],
"type": "module", "type": "module",
"scripts": { "funding": "https://github.com/sponsors/revi",
"p:c": "prettier --check"
},
"author": "revi",
"license": "Apache-2.0" "license": "Apache-2.0"
} }

View file

@ -7,6 +7,7 @@
* @license Apache-2.0 * @license Apache-2.0
*/ */
// Update README.md when you update the config.
const config = { const config = {
bracketSpacing: false, bracketSpacing: false,
bracketSameLine: true, bracketSameLine: true,