-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add configuration for prettier code formatting
1. Add prettier and configuration files, but do not format code yet. 2. Configure it for all html|css|js|md code. 3. Fix a bug it found in `CZML Custom Properties.html` 4. Add a pre-commit hook via husky and pretty-quick which will automatically format changed files when they are staged on the client. 5. Run `prettier-check` during CI and fail the build of code is not formatted properly. 6. Install eslint config for prettier. This does not enable prettier checking in eslint (it's unusably slow) but instead just makes sure that no eslint rules conflict with prettier formatting. 7. Update .editorconfig to match (since prettier respects it) 8. Tweak Sandcastle to handle prettier formated examples
- Loading branch information
Showing
8 changed files
with
31 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/node_modules | ||
/Build | ||
/ThirdParty | ||
/Apps/Sandcastle/ThirdParty | ||
/Source/Cesium.js | ||
/Source/Shaders/**/*.js | ||
/Source/ThirdParty/** | ||
/Source/Workers/**/* | ||
!/Source/Workers/cesiumWorkerBootstrapper.js | ||
!/Source/Workers/transferTypedArrayTest.js | ||
*.min.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters