From ea8f17eb7d6d584ed1ed0b5dbfc4b381690d8539 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sun, 1 Sep 2024 22:18:59 +0200 Subject: [PATCH] build: configure lint-staged to only lint files from tests, src, and utils directory --- lint-staged.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lint-staged.config.js b/lint-staged.config.js index 2217f59..d809cac 100644 --- a/lint-staged.config.js +++ b/lint-staged.config.js @@ -1,3 +1,5 @@ module.exports = { - "*.js": "eslint --cache --fix" + "tests/**/*.js": "eslint --cache --fix", + "src/**/*.js": "eslint --cache --fix", + "utils/**/*.js": "eslint --cache --fix" };