adds EditorConfig and Prettier config files to specify IDE settings and code formatting rules, respectively.
adds lint-staged and husky config files so that whenever any files are committed, they will be auto formatted by a pre-commit hook. If formatting fails due to syntax error, for example, then the commit will fail
Finally, formats all code in the repo using the new config
To view only the config changes, see f1a4eafd78c009b14c17ede26b85c10b136851f5, and to view the whole-repo code re-format, see 792587d896b0aac471b76dd340fe6d63e8e81e36.
This PR builds upon https://github.com/milahu/solidjs-resizable-splitter-component/pull/1
The "Files changed" tab here includes changes for https://github.com/milahu/solidjs-resizable-splitter-component/pull/1 which isn't helpful.
See here the diff between https://github.com/milahu/solidjs-resizable-splitter-component/pull/1 and this PR: https://github.com/trusktr/solidjs-resizable-splitter-component/compare/get-demo-working..code-formatting (i.e. ignore ea9f609 which is already in PR #1)
If you merge this PR, it will merge the other PR.
Summary
To view only the config changes, see f1a4eafd78c009b14c17ede26b85c10b136851f5, and to view the whole-repo code re-format, see 792587d896b0aac471b76dd340fe6d63e8e81e36.