Refine lint-staged configuration
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 11 Oct 2022 11:09:51 +0000 (13:09 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 11 Oct 2022 11:09:51 +0000 (13:09 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.lintstagedrc.js

index 8fb4221286ce4b7bfeae1c30ce8eccb01b57c935..5335989f9d3a4772469d574cfde950fa3224d1c0 100644 (file)
@@ -1,4 +1,8 @@
 module.exports = {
-  '**/*.{js,mjs,ts}': ['eslint --cache --fix'],
+  '**/*.{js,mjs,ts}': [
+    'prettier --write',
+    'prettierx --write',
+    'eslint --cache --fix'
+  ],
   '**/*.{json,md,yml}': ['prettier --write', 'prettierx --write']
 }