npx prettier --write .

Summary:
Also:

- add prettier config and prettierignore
- add quick `npm run` alias.

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

Test Plan: `npm run pcheck`, `npm run pwrite`

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D212
This commit is contained in:
revi 2024-06-08 16:36:22 +09:00
parent d5b6e05a86
commit 9b0fbcc55d
Signed by: revi
GPG key ID: 1EB4F6CEEA100E94
6 changed files with 38 additions and 29 deletions

View file

@ -3,31 +3,30 @@
version: 2 version: 2
updates: updates:
# Maintain dependencies for GitHub Actions # Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions" - package-ecosystem: 'github-actions'
assignees: assignees:
- "revi" - 'revi'
# Workflow files stored in the default location of `.github/workflows`. # Workflow files stored in the default location of `.github/workflows`.
# You don't need to specify `/.github/workflows` for `directory`. # You don't need to specify `/.github/workflows` for `directory`.
# You can use `directory: "/"`. # You can use `directory: "/"`.
directory: "/" directory: '/'
schedule: schedule:
interval: "weekly" interval: 'weekly'
day: "monday" day: 'tuesday'
time: "10:00" time: '10:00'
timezone: "Asia/Seoul" timezone: 'Asia/Seoul'
target-branch: "master" target-branch: 'master'
# Maintain dependencies for `npm` @ rootdir # Maintain dependencies for `npm` @ rootdir
- package-ecosystem: "npm" - package-ecosystem: 'npm'
assignees: assignees:
- "revi" - 'revi'
# npm package dependencies in the location of `go-revi-xyz/package.json`. # npm package dependencies in the location of `package.json`.
directory: "/" directory: '/'
schedule: schedule:
interval: "weekly" interval: 'weekly'
day: "monday" day: 'tuesday'
time: "10:00" time: '10:00'
timezone: "Asia/Seoul" timezone: 'Asia/Seoul'
target-branch: "master" target-branch: 'master'

2
.prettierignore Normal file
View file

@ -0,0 +1,2 @@
LICENSE
node_modules

8
.prettierrc.yaml Normal file
View file

@ -0,0 +1,8 @@
# https://prettier.io/docs/en/configuration
# Prettier configuration
bracketSpacing: false
bracketSameLine: true
proseWrap: preserve
singleQuote: true
trailingComma: all

View file

@ -1,9 +1,5 @@
{ {
"ignored_packages": "ignored_packages": ["Vintage"],
[
"Vintage"
],
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme", "color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"theme": "Material-Theme.sublime-theme" "theme": "Material-Theme.sublime-theme",
} }

View file

@ -10,7 +10,7 @@ ## LICENSE
## Dependencies ## Dependencies
* Git, obviously - Git, obviously
* Bash or zsh, while I haven't backed up zsh configs. - Bash or zsh, while I haven't backed up zsh configs.
* gnupg or gnupg2. - gnupg or gnupg2.
* [ntfy](https://github.com/dschep/ntfy) and ``ntfy[telegram]`. - [ntfy](https://github.com/dschep/ntfy) and ``ntfy[telegram]`.

View file

@ -4,5 +4,9 @@
}, },
"devDependencies": { "devDependencies": {
"prettier": "^3.3.1" "prettier": "^3.3.1"
},
"scripts": {
"pcheck": "prettier --check .",
"pwrite": "prettier --write ."
} }
} }