Skip to content

Commit 374bbd1

Browse files
authored
refactor(lint staged): added further xo supported filetypes (#648)
Adding further file types to the lint staged config regarding xo testing: https://www.npmjs.com/package/xo#extensions
1 parent 02f86d9 commit 374bbd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.lintstagedrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"*.hbs": "npm run lint:html",
33
"*.md": "markdownlint -c .markdown-lint.yml",
44
"*.{css,scss}": "stylelint --fix",
5-
"*.{js,ts,tsx}": "xo --fix",
6-
"!*.{js,ts,tsx}": "prettier --write --ignore-unknown"
5+
"*.{js,ts,tsx,jsx,mjs,cjs}": "xo --fix",
6+
"!*.{js,ts,tsx,jsx,mjs,cjs}": "prettier --write --ignore-unknown"
77
}

0 commit comments

Comments
 (0)