Skip to content

Commit

Permalink
docs: switch to using string properties in merge hash for now
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Aug 11, 2023
1 parent 67a6d04 commit 25bab56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ package_json.manager.add(%w[eslint prettier], :dev)
# adds the "lint" and "format" scripts, preserving any existing scripts
package_json.merge! do |pj|
{
scripts: pj.fetch("scripts", {}).merge({
lint: "eslint . --ext js",
format: "prettier --check ."
"scripts" => pj.fetch("scripts", {}).merge({
"lint" => "eslint . --ext js",
"format" => "prettier --check ."
})
}
end
Expand Down

0 comments on commit 25bab56

Please sign in to comment.