Skip to content

Commit 56f6285

Browse files
authored
Merge pull request #8763 from CesiumGS/better-prettier-ignore
Improve consistency between prettier and pretty-quick.
2 parents 99b7c25 + 1117a68 commit 56f6285

File tree

2 files changed

+31
-13
lines changed

2 files changed

+31
-13
lines changed

.prettierignore

+29-11
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,29 @@
1-
/node_modules
2-
/Build
3-
/ThirdParty
4-
/Apps/Sandcastle/ThirdParty
5-
/Source/Cesium.js
6-
/Source/Shaders/**/*.js
7-
/Source/ThirdParty/**
8-
/Source/Workers/**/*
9-
!/Source/Workers/cesiumWorkerBootstrapper.js
10-
!/Source/Workers/transferTypedArrayTest.js
11-
*.min.js
1+
2+
# Ignore everything
3+
*
4+
5+
# Unignore directories (to all depths) and unignore code and style files in these directories
6+
!.concierge/**/
7+
!.github/**/
8+
!.vscode/**/
9+
!Apps/**/
10+
!Documentation/**/
11+
!Source/**/
12+
!Specs/**/
13+
!Tools/**/
14+
15+
!**/*.js
16+
!**/*.css
17+
!**/*.html
18+
!**/*.md
19+
20+
# Re-ignore a few things caught above
21+
**/*.min.js
22+
Source/Cesium.js
23+
Source/Shaders/**/*.js
24+
Source/ThirdParty/**
25+
Source/Workers/**/*
26+
Apps/Sandcastle/ThirdParty
27+
28+
!Source/Workers/cesiumWorkerBootstrapper.js
29+
!Source/Workers/transferTypedArrayTest.js

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@
121121
"deploy-s3": "gulp deploy-s3",
122122
"deploy-status": "gulp deploy-status",
123123
"deploy-set-version": "gulp deploy-set-version",
124-
"prettier": "prettier --write \"**/*.(js|css|html|md)\"",
125-
"prettier-check": "prettier --check \"**/*.(js|css|html|md)\"",
124+
"prettier": "prettier --write \"**/*\"",
125+
"prettier-check": "prettier --check \"**/*\"",
126126
"pretty-quick": "pretty-quick"
127127
}
128128
}

0 commit comments

Comments
 (0)