Skip to content

Commit

Permalink
Fixed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
adithyanotfound committed Jan 14, 2025
1 parent d765c0a commit 8dbff8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/scripts/eslint_disable_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

Expand Down

0 comments on commit 8dbff8c

Please sign in to comment.