From b325f29851008a092a18f5543a45713360255bb6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 9 Oct 2022 14:58:16 +0200 Subject: [PATCH] Move lint-staged configuration from package.json to .lintstagedrc.json MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .lintstagedrc.json | 5 +++++ package.json | 13 ------------- 2 files changed, 5 insertions(+), 13 deletions(-) create mode 100644 .lintstagedrc.json 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}", -- 2.34.1