Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/trunk' into update/convert-e2e-t…
Browse files Browse the repository at this point in the history
…ests-to-esm
  • Loading branch information
anomiex committed Nov 2, 2023
2 parents 9363fc5 + ce1e346 commit b2c3668
Show file tree
Hide file tree
Showing 289 changed files with 3,054 additions and 2,299 deletions.
8 changes: 8 additions & 0 deletions .github/files/lint-project-structure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,14 @@ for PROJECT in projects/*/*; do
fi
fi

# Should have only one of jsconfig.json or tsconfig.json.
# @todo Having neither is ok in some cases. Can we determine when one is needed to flag that it should be added?
if [[ -e "$PROJECT/jsconfig.json" && -e "$PROJECT/tsconfig.json" ]]; then
EXIT=1
echo "::error file=$PROJECT/jsconfig.json::The project should have either jsconfig.json or tsconfig.json, not both. Keep tsconfig if the project uses TypeScript, or jsconfig if the project is JS-only."
echo "::error file=$PROJECT/tsconfig.json::The project should have either jsconfig.json or tsconfig.json, not both. Keep tsconfig if the project uses TypeScript, or jsconfig if the project is JS-only."
fi

# - composer.json must exist.
if [[ ! -e "$PROJECT/composer.json" ]]; then
EXIT=1
Expand Down
Loading

0 comments on commit b2c3668

Please sign in to comment.