Move lint-staged configuration from package.json to .lintstagedrc.json
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 9 Oct 2022 12:58:16 +0000 (14:58 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 9 Oct 2022 12:58:16 +0000 (14:58 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.lintstagedrc.json [new file with mode: 0644]
package.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"]
+}
index e9c64be07392affbf31d5b99c153c299461b5269..aec21ed8b0e15c6964e876259f72a7bb332f5f99 100644 (file)
     "./dist/start.cjs",
     "./dist/start.mjs"
   ],
-  "lint-staged": {
-    "{src,test}/**/*.{js,ts}": [
-      "prettier --write",
-      "eslint --cache --fix"
-    ],
-    "**/*.{json,md,yml}": [
-      "prettier --write"
-    ],
-    "**/*.{js,mjs}": [
-      "prettier --write",
-      "eslint --cache --fix"
-    ]
-  },
   "auto-changelog": {
     "commitUrl": "https://github.com/sap/e-mobility-charging-stations-simulator/commit/{id}",
     "issueUrl": "https://github.com/sap/e-mobility-charging-stations-simulator/issues/{id}",