From a8d90929d1f89e406aaf3097b52a3763cab2222a Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Sat, 18 Nov 2023 09:46:54 +0100 Subject: [PATCH] refactor(lint staged): added further xo supported filetypes Adding further file types to the lint staged config regarding xo testing: https://www.npmjs.com/package/xo#extensions --- .lintstagedrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.lintstagedrc b/.lintstagedrc index 3cd128b6de..13d2698df7 100644 --- a/.lintstagedrc +++ b/.lintstagedrc @@ -2,6 +2,6 @@ "*.hbs": "npm run lint:html", "*.md": "markdownlint -c .markdown-lint.yml", "*.{css,scss}": "stylelint --fix", - "*.{js,ts,tsx}": "xo --fix", - "!*.{js,ts,tsx}": "prettier --write --ignore-unknown" + "*.{js,ts,tsx,jsx,mjs,cjs}": "xo --fix", + "!*.{js,ts,tsx,jsx,mjs,cjs}": "prettier --write --ignore-unknown" }