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
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
- package-ecosystem: 'github-actions'
assignees:
- "revi"
- 'revi'
# Workflow files stored in the default location of `.github/workflows`.
# You don't need to specify `/.github/workflows` for `directory`.
# You can use `directory: "/"`.
directory: "/"
directory: '/'
schedule:
interval: "weekly"
day: "monday"
time: "10:00"
timezone: "Asia/Seoul"
target-branch: "master"
interval: 'weekly'
day: 'tuesday'
time: '10:00'
timezone: 'Asia/Seoul'
target-branch: 'master'
# Maintain dependencies for `npm` @ rootdir
- package-ecosystem: "npm"
- package-ecosystem: 'npm'
assignees:
- "revi"
# npm package dependencies in the location of `go-revi-xyz/package.json`.
directory: "/"
- 'revi'
# npm package dependencies in the location of `package.json`.
directory: '/'
schedule:
interval: "weekly"
day: "monday"
time: "10:00"
timezone: "Asia/Seoul"
target-branch: "master"
interval: 'weekly'
day: 'tuesday'
time: '10:00'
timezone: 'Asia/Seoul'
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":
[
"Vintage"
],
"ignored_packages": ["Vintage"],
"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
* Git, obviously
* Bash or zsh, while I haven't backed up zsh configs.
* gnupg or gnupg2.
* [ntfy](https://github.com/dschep/ntfy) and ``ntfy[telegram]`.
- Git, obviously
- Bash or zsh, while I haven't backed up zsh configs.
- gnupg or gnupg2.
- [ntfy](https://github.com/dschep/ntfy) and ``ntfy[telegram]`.

View file

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