From ef0f7ca4cefddfb54e5e33ea8f4c53fbbb9d844e Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 9 Oct 2022 14:51:02 +0200 Subject: [PATCH] Refine lint-staged configuration MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .eslintrc => .eslintrc.json | 0 package-lock.json | 14 +++++++------- package.json | 11 +++++++++-- 3 files changed, 16 insertions(+), 9 deletions(-) rename .eslintrc => .eslintrc.json (100%) diff --git a/.eslintrc b/.eslintrc.json similarity index 100% rename from .eslintrc rename to .eslintrc.json diff --git a/package-lock.json b/package-lock.json index a8ed653f..c29122be 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,7 +22,7 @@ "mnemonist": "^0.39.3", "moment": "^2.29.4", "mongodb": "^4.10.0", - "poolifier": "^2.2.1", + "poolifier": "^2.2.2", "proper-lockfile": "^4.1.2", "source-map-support": "^0.5.21", "tar": "^6.1.11", @@ -12294,9 +12294,9 @@ } }, "node_modules/poolifier": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/poolifier/-/poolifier-2.2.1.tgz", - "integrity": "sha512-siQ3R4JuIZPe4SS7pWLlnyp9GX/lZAs7oCDuUHn2IYppI7jHUFm2IQ0g0dJprokXRlSUjDN+hGdiT7LBSLpGvA==", + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/poolifier/-/poolifier-2.2.2.tgz", + "integrity": "sha512-P/HEDFP9vvmLUnAoydBJL77jzZ1orw4NJBb20H7JagYlAdZTMG4UHSUF62fusdiLR3rHYXgLo6/tjH7D6ix2gQ==", "engines": { "node": ">=16.0.0", "npm": ">=8.0.0" @@ -26963,9 +26963,9 @@ } }, "poolifier": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/poolifier/-/poolifier-2.2.1.tgz", - "integrity": "sha512-siQ3R4JuIZPe4SS7pWLlnyp9GX/lZAs7oCDuUHn2IYppI7jHUFm2IQ0g0dJprokXRlSUjDN+hGdiT7LBSLpGvA==" + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/poolifier/-/poolifier-2.2.2.tgz", + "integrity": "sha512-P/HEDFP9vvmLUnAoydBJL77jzZ1orw4NJBb20H7JagYlAdZTMG4UHSUF62fusdiLR3rHYXgLo6/tjH7D6ix2gQ==" }, "postcss": { "version": "8.4.16", diff --git a/package.json b/package.json index add91dcc..e9c64be0 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,14 @@ "./dist/start.mjs" ], "lint-staged": { - "src/**/*.{js,ts}": [ + "{src,test}/**/*.{js,ts}": [ + "prettier --write", + "eslint --cache --fix" + ], + "**/*.{json,md,yml}": [ + "prettier --write" + ], + "**/*.{js,mjs}": [ "prettier --write", "eslint --cache --fix" ] @@ -93,7 +100,7 @@ "mnemonist": "^0.39.3", "moment": "^2.29.4", "mongodb": "^4.10.0", - "poolifier": "^2.2.1", + "poolifier": "^2.2.2", "proper-lockfile": "^4.1.2", "source-map-support": "^0.5.21", "tar": "^6.1.11", -- 2.34.1