add beautifyrc and pre-commit hook