From cc49cc54cf49fbfabcab31af095e039d17e3eb8e Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Tue, 30 Apr 2024 21:36:22 +0200 Subject: [PATCH] lmit script --- lintpr.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lintpr.sh diff --git a/lintpr.sh b/lintpr.sh new file mode 100644 index 0000000000..38f60e3338 --- /dev/null +++ b/lintpr.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +# Find all project.json files in subdirectories +find . -type d -name 'node_modules' -prune -o -name '.eslintrc' -print | while read -r file; do + # Extract the directory path of the file + dir=$(dirname "$file") + + + + echo $file + + git checkout master -- $file + +done