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:
parent
d5b6e05a86
commit
9b0fbcc55d
6 changed files with 38 additions and 29 deletions
35
.github/dependabot.yml
vendored
35
.github/dependabot.yml
vendored
|
@ -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
2
.prettierignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
LICENSE
|
||||
node_modules
|
8
.prettierrc.yaml
Normal file
8
.prettierrc.yaml
Normal file
|
@ -0,0 +1,8 @@
|
|||
# https://prettier.io/docs/en/configuration
|
||||
|
||||
# Prettier configuration
|
||||
bracketSpacing: false
|
||||
bracketSameLine: true
|
||||
proseWrap: preserve
|
||||
singleQuote: true
|
||||
trailingComma: all
|
|
@ -1,9 +1,5 @@
|
|||
{
|
||||
"ignored_packages":
|
||||
[
|
||||
"Vintage"
|
||||
],
|
||||
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
|
||||
"theme": "Material-Theme.sublime-theme"
|
||||
"ignored_packages": ["Vintage"],
|
||||
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
|
||||
"theme": "Material-Theme.sublime-theme",
|
||||
}
|
||||
|
||||
|
|
|
@ -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]`.
|
||||
|
|
|
@ -4,5 +4,9 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"prettier": "^3.3.1"
|
||||
},
|
||||
"scripts": {
|
||||
"pcheck": "prettier --check .",
|
||||
"pwrite": "prettier --write ."
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue