Properly integrate standard JS tools for JS and TS code
[poolifier.git] / .lintstagedrc.js
index fdad04d8cc847c9274a6b4566315c07f78228623..33c1152d4169c711ecacd66d70686b76bc7f27d1 100644 (file)
@@ -1,8 +1,9 @@
 module.exports = {
-  '**/*.{js,mjs,ts}': [
+  '**/*.{ts,tsx}': [
     'prettier --write',
-    'prettierx --write',
+    'ts-standard --fix',
     'eslint --cache --fix'
   ],
-  '**/*.{json,md,yml,yaml}': ['prettier --write', 'prettierx --write']
+  '**/*.{js,jsx,mjs,cjs}': ['prettier --write', 'eslint --cache --fix'],
+  '**/*.{json,md,yml,yaml}': ['prettier --write']
 }