This commit marks applying prettier to the whole of git history up to this point and prettier is used to enforce format via pre-commit hook. The command used was: `git filter-branch -f --tree-filter 'prettier --no-config --single-quote --tab-width=1 --print-width=100 --use-tabs --trailing-comma=none --prose-wrap=always --write "{.,{packages,bin}/**}/*.{js,json,md}" || echo "Error formatting, possibly invalid JS"' -- --all`
18 lines
565 B
JSON
18 lines
565 B
JSON
{
|
|
"devDependencies": {
|
|
"chrome-launcher": "^0.10.2",
|
|
"chrome-remote-interface": "^0.25.5",
|
|
"husky": "1.0.0-rc.13",
|
|
"lerna": "2.0.0-beta.32"
|
|
},
|
|
"scripts": {
|
|
"check_code_format": "nodejs node_modules/prettier/bin-prettier.js --config ./prettier.config.js --list-different \"{.,{packages,bin}/**/!(dist)}/*.{js,json,md}\"",
|
|
"format_code": "nodejs node_modules/prettier/bin-prettier.js --config ./prettier.config.js --write \"{.,{packages,bin}/**/!(dist)}/*.{js,json,md}\""
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "sh ./bin/pre-commit.sh"
|
|
}
|
|
}
|
|
}
|