Skip to content

Commit 15705b7

Browse files
Merge pull request #945 from jbatley/dev
fix: Prettier should only format .js files
2 parents f4b839d + 7997a02 commit 15705b7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ packages/core/scripts/api.handlebars
99
packages/core/scripts/events.handlebars
1010
packages/core/test/files/annotations.js
1111
**/uikit-workshop/src/js/**/*
12+
*.json
13+
*.md
14+
*.scss

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"bootstrap": "lerna bootstrap",
88
"precommit": "pretty-quick --staged",
9-
"prettier": "prettier --config .prettierrc --write ./**/*.js",
9+
"prettier": "prettier --config .prettierrc --write ./**/*.js --ignore-path .prettierignore",
1010
"test": "lerna run test",
1111
"clean": "git clean -dfx"
1212
},

0 commit comments

Comments
 (0)