Skip to content

Commit

Permalink
Merge pull request #8763 from CesiumGS/better-prettier-ignore
Browse files Browse the repository at this point in the history
Improve consistency between prettier and pretty-quick.
  • Loading branch information
mramato authored Apr 17, 2020
2 parents 99b7c25 + 1117a68 commit 56f6285
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 13 deletions.
40 changes: 29 additions & 11 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,29 @@
/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

# Ignore everything
*

# Unignore directories (to all depths) and unignore code and style files in these directories
!.concierge/**/
!.github/**/
!.vscode/**/
!Apps/**/
!Documentation/**/
!Source/**/
!Specs/**/
!Tools/**/

!**/*.js
!**/*.css
!**/*.html
!**/*.md

# Re-ignore a few things caught above
**/*.min.js
Source/Cesium.js
Source/Shaders/**/*.js
Source/ThirdParty/**
Source/Workers/**/*
Apps/Sandcastle/ThirdParty

!Source/Workers/cesiumWorkerBootstrapper.js
!Source/Workers/transferTypedArrayTest.js
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@
"deploy-s3": "gulp deploy-s3",
"deploy-status": "gulp deploy-status",
"deploy-set-version": "gulp deploy-set-version",
"prettier": "prettier --write \"**/*.(js|css|html|md)\"",
"prettier-check": "prettier --check \"**/*.(js|css|html|md)\"",
"prettier": "prettier --write \"**/*\"",
"prettier-check": "prettier --check \"**/*\"",
"pretty-quick": "pretty-quick"
}
}

0 comments on commit 56f6285

Please sign in to comment.