From 8dbff8cc5fc53a1e2febd1a4a2ed8e4d13231698 Mon Sep 17 00:00:00 2001 From: adithya Date: Tue, 14 Jan 2025 15:55:05 +0530 Subject: [PATCH] Fixed lint --- .github/workflows/pull-request.yml | 2 +- .github/workflows/scripts/eslint_disable_check.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 80c13f5168..357b4a48c4 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -198,7 +198,7 @@ jobs: - name: Filter TypeScript files id: filter-files run: | - echo "ts_files=$(echo '${{ steps.changed-files.outputs.all_changed_files }}' | tr ',' '\n' | grep -E '\.(ts|tsx)$' | tr '\n' ' ')" >> $GITHUB_OUTPUT + echo "ts_files=$(echo '${{ steps.changed-files.outputs.all_changed_files }}' | tr ',' '\n' | grep -E '\.(ts|tsx)$' | tr '\n' '\n')" >> $GITHUB_OUTPUT shell: bash - name: Run Python script diff --git a/.github/workflows/scripts/eslint_disable_check.py b/.github/workflows/scripts/eslint_disable_check.py index aba5810687..a7421f226b 100644 --- a/.github/workflows/scripts/eslint_disable_check.py +++ b/.github/workflows/scripts/eslint_disable_check.py @@ -38,7 +38,9 @@ def has_eslint_disable(file_path): """ # Initialize key variables eslint_disable_pattern = re.compile( - r"\/\/\s*eslint-disable(?:-next-line|-line)?[^\n]*|\/\*\s*eslint-disable[^\*]*\*\/|\/\*[\s\S]*?eslint-disable[\s\S]*?\*\/", + r"\/\/\s*eslint-disable(?:-next-line|-line)?[^\n]*|" + r"\/\*\s*eslint-disable[^\*]*\*\/|" + r"\/\*[\s\S]*?eslint-disable[\s\S]*?\*\/", re.IGNORECASE | re.DOTALL, )