Move lint-staged configuration from package.json to .lintstagedrc.json
[e-mobility-charging-stations-simulator.git] / .lintstagedrc.json
diff --git a/.lintstagedrc.json b/.lintstagedrc.json
new file mode 100644 (file)
index 0000000..97fb30e
--- /dev/null
@@ -0,0 +1,5 @@
+{
+  "{src,test}/**/*.{js,ts}": ["prettier --write", "eslint --cache --fix"],
+  "**/*.{json,md,yml}": ["prettier --write"],
+  "**/*.{js,mjs}": ["prettier --write", "eslint --cache --fix"]
+}