-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #85285 - GuillaumeGomez:eslint-check, r=jsha,Mark-Sim…
…ulacrum Add eslint checks to CI It also allowed me to fix some potential issues that went unnoticed. Having this process automated will hopefully prevent us to add more errors. :) cc `@Mark-Simulacrum` (for the add in the CI). r? `@jsha`
- Loading branch information
Showing
2 changed files
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ ENV PATH="/node-v14.4.0-linux-x64/bin:${PATH}" | |
# Install es-check | ||
# Pin its version to prevent unrelated CI failures due to future es-check versions. | ||
RUN npm install [email protected] -g | ||
RUN npm install [email protected] -g | ||
|
||
COPY scripts/sccache.sh /scripts/ | ||
RUN sh /scripts/sccache.sh | ||
|
@@ -37,4 +38,5 @@ ENV SCRIPT python3 ../x.py --stage 2 test src/tools/expand-yaml-anchors && \ | |
python3 ../x.py doc --stage 0 library/test && \ | ||
/scripts/validate-toolstate.sh && \ | ||
# Runs checks to ensure that there are no ES5 issues in our JS code. | ||
es-check es5 ../src/librustdoc/html/static/*.js | ||
es-check es5 ../src/librustdoc/html/static/*.js && \ | ||
eslint ../src/librustdoc/html/static/*.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/* global initSidebarItems */ | ||
initSidebarItems({}); |