From ffd7089135016f6443f1d74da3f5a32b2d056353 Mon Sep 17 00:00:00 2001 From: Matt Milburn Date: Mon, 2 Dec 2024 13:51:19 -0600 Subject: [PATCH] Update lint-staged config --- package.json | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 9b4dafb..c1db5bd 100644 --- a/package.json +++ b/package.json @@ -42,8 +42,8 @@ ], "scripts": { "build": "strapi-plugin build", - "format": "prettier --check \"**/*.+(js|jsx|ts|tsx|json|css|md)\"", - "format:fix": "prettier --write \"**/*.+(js|jsx|ts|tsx|json|css|md)\"", + "format": "prettier --check \"{admin,server}/**/*.(ts|tsx|json|md)\"", + "format:fix": "prettier --write \"{admin,server}/**/*.(ts|tsx|json|md)\"", "lint": "eslint --fix-dry-run '{admin,server}/**/*.{ts,tsx}'", "lint:fix": "eslint --fix '{admin,server}/**/*.{ts,tsx}'", "prepare": "husky", @@ -54,10 +54,8 @@ "watch:link": "strapi-plugin watch:link" }, "lint-staged": { - "*.{js,jsx,ts,tsx}": [ - "prettier --check", - "eslint --fix-dry-run" - ] + "{admin,server}/**/*.(ts|tsx|json|css|md)": "prettier --check", + "{admin,server}/**/*.{ts,tsx}": "eslint --fix-dry-run" }, "prettier": { "endOfLine": "lf",