Skip to content

Commit f6baa38

Browse files
authored
chore: update lint-staged config (#4500)
1 parent 8c90b84 commit f6baa38

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/**
2+
* @type {import('lint-staged').Configuration}
3+
*/
14
export default {
25
'**/*': 'prettier --write --ignore-unknown'
36
};

.config/.lintstagedrc.js renamed to .config/lint-staged.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/**
2+
* @type {import('lint-staged').Configuration}
3+
*/
14
export default {
25
'*.md': 'markdownlint -c .config/.markdown-lint.yml',
36
// In case that we're changing the stylelints configuration files content, we would need to validate it

.husky/pre-commit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
validate-branch-name
22
node scripts/check-commit-mail.js
3-
lint-staged --config .config/.lintstagedrc.js
4-
lint-staged --config .config/.lintstagedrc-prettier.js
3+
lint-staged --config .config/lint-staged.config.ts
4+
lint-staged --config .config/lint-staged-prettier.config.ts
55
git update-index --again
66
npm run lint:jscpd

0 commit comments

Comments
 (0)