Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 27 additions & 9 deletions .github/workflows/repo-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,16 @@ jobs:
git clean -fdX # Remove untracked files and directories
git gc --prune=now # Garbage collect and prune unreachable objects

if [ ! -f "eslint.config.js" ]; then
echo "Creating default ESLint config..."
echo "import js from '@eslint/js';" > eslint.config.js
echo "export default [js.configs.recommended];" >> eslint.config.js
fi

# Remove unused imports and missing file references
# echo "Running ESLint to remove unused imports..."
# npm install eslint -g
# eslint . --fix
echo "Running ESLint to remove unused imports..."
npm install eslint -g
eslint . --fix

echo "Running autoflake to remove unused imports..."
pip install autoflake
Expand Down Expand Up @@ -163,10 +169,16 @@ jobs:
git clean -fdX # Remove untracked files and directories
git gc --prune=now # Garbage collect and prune unreachable objects

if [ ! -f "eslint.config.js" ]; then
echo "Creating default ESLint config..."
echo "import js from '@eslint/js';" > eslint.config.js
echo "export default [js.configs.recommended];" >> eslint.config.js
fi

# Remove unused imports and missing file references
# echo "Running ESLint to remove unused imports..."
# npm install eslint -g
# eslint . --fix
echo "Running ESLint to remove unused imports..."
npm install eslint -g
eslint . --fix

echo "Running autoflake to remove unused imports..."
pip install autoflake
Expand Down Expand Up @@ -229,10 +241,16 @@ jobs:
git clean -fdX # Remove untracked files and directories
git gc --prune=now # Garbage collect and prune unreachable objects

if [ ! -f "eslint.config.js" ]; then
echo "Creating default ESLint config..."
echo "import js from '@eslint/js';" > eslint.config.js
echo "export default [js.configs.recommended];" >> eslint.config.js
fi

# Remove unused imports and missing file references
# echo "Running ESLint to remove unused imports..."
# npm install eslint -g
# eslint . --fix
echo "Running ESLint to remove unused imports..."
npm install eslint -g
eslint . --fix

echo "Running autoflake to remove unused imports..."
pip install autoflake
Expand Down