From: Jérôme Benoit Date: Sun, 9 Oct 2022 12:58:16 +0000 (+0200) Subject: Move lint-staged configuration from package.json to .lintstagedrc.json X-Git-Tag: v1.1.82~15 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=b325f29851008a092a18f5543a45713360255bb6;p=e-mobility-charging-stations-simulator.git Move lint-staged configuration from package.json to .lintstagedrc.json Signed-off-by: Jérôme Benoit --- diff --git a/.lintstagedrc.json b/.lintstagedrc.json new file mode 100644 index 00000000..97fb30e2 --- /dev/null +++ b/.lintstagedrc.json @@ -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"] +} diff --git a/package.json b/package.json index e9c64be0..aec21ed8 100644 --- a/package.json +++ b/package.json @@ -29,19 +29,6 @@ "./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}",