Skip to content

Commit 5dc92da

Browse files
committed
chore: update prettier configuration to ignore unknown file types
1 parent c96462b commit 5dc92da

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.lintstagedrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
'*.md': 'cspell --no-must-find-files --unique',
3-
'*.{css,scss,md,yml,json,js,ts,xml,html}': 'prettier --write',
3+
'*': 'prettier --write --ignore-unknown',
44
'*.{css,scss}': 'stylelint --max-warnings=0 --fix',
55
'*.{js,ts,html}': 'eslint --max-warnings=0 --fix'
66
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@
298298
"stylelint": "stylelint '**/*.{css,scss}'",
299299
"stylelint:fix": "yarn run stylelint --fix",
300300
"cspell": "cspell '**/*.md' --unique",
301-
"prettier": "prettier --check .",
301+
"prettier": "prettier --check . --ignore-unknown",
302302
"prettier:fix": "yarn run prettier --write"
303303
},
304304
"release": {

0 commit comments

Comments
 (0)