Skip to content

Commit

Permalink
update prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkrives committed Dec 11, 2024
1 parent f0e1f51 commit e26cb91
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 18 deletions.
14 changes: 1 addition & 13 deletions .config/mise/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,7 @@ run = "sed -i.bak 's/\\(_backedTextInputView.scrollEnabled = \\)YES;/\\1NO;/' no
run = "bash ./scripts/prepare-third-party.sh"

[tasks.prettier]
run = "prettier --write '{source,scripts}/**/*.js' 'data/**/*.css' '*.js'"

[tasks."prettier:ci"]
depends = ["prettier"]
run = """
# ensure that the file exists
mkdir -p logs
touch logs/prettier
if ! git diff --quiet *.js source/ scripts/; then
git diff *.js source/ scripts/ | tee logs/prettier
fi
"""
run = "npx prettier --write '{source,scripts}/**/*.js' '*.js'"

[tasks."prettier:changed"]
run = "pretty-quick"
Expand Down
13 changes: 9 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"junk": "2.1.0",
"minimist": "1.2.3",
"pify": "3.0.0",
"prettier": "1.12.1",
"prettier": "3.4.2",
"pretty-bytes": "4.0.2",
"prop-types": "15.6.1",
"react-test-renderer": "16.3.2",
Expand Down

0 comments on commit e26cb91

Please sign in to comment.