From cf98e9738ff8ce06ea310ed878079749a597be68 Mon Sep 17 00:00:00 2001 From: Ans Date: Fri, 29 Nov 2024 18:28:05 -0500 Subject: [PATCH] Exit linting on error from sub task --- scripts/lint.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/lint.sh b/scripts/lint.sh index 7b0fbe2f7d..a5588c6af3 100755 --- a/scripts/lint.sh +++ b/scripts/lint.sh @@ -1,3 +1,8 @@ +#!/bin/sh + +# Exit on error from any of the linting sub-tasks. +set -e + ## Run prettier. See ignored path in .prettierignore. yarn prettier "./**/*.{js,jsx,ts,tsx,md,css,scss}" --write