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:
parent
01e6487932
commit
41b70cb468
3 changed files with 51 additions and 7 deletions
37
npm/prettier-config/README.md
Normal file
37
npm/prettier-config/README.md
Normal 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'},
|
||||
},
|
||||
],
|
||||
};
|
||||
```
|
|
@ -1,15 +1,24 @@
|
|||
{
|
||||
"$schema": "https://json.schemastore.org/package.json",
|
||||
"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",
|
||||
"main": "prettier.config.js",
|
||||
"dependencies": {
|
||||
"peerDependencies": {
|
||||
"prettier": "^3.3.2"
|
||||
},
|
||||
"scripts": {
|
||||
"p:c": "prettier --check"
|
||||
},
|
||||
"repository": {
|
||||
"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": {
|
||||
"url": "https://revi.xyz/new"
|
||||
|
@ -18,9 +27,6 @@
|
|||
"prettier"
|
||||
],
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"p:c": "prettier --check"
|
||||
},
|
||||
"author": "revi",
|
||||
"funding": "https://github.com/sponsors/revi",
|
||||
"license": "Apache-2.0"
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
* @license Apache-2.0
|
||||
*/
|
||||
|
||||
// Update README.md when you update the config.
|
||||
const config = {
|
||||
bracketSpacing: false,
|
||||
bracketSameLine: true,
|
||||
|
|
Loading…
Reference in a new issue