Skip to content

Commit 9c873c1

Browse files
Rollup merge of #85285 - GuillaumeGomez:eslint-check, r=jsha,Mark-Simulacrum
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`
2 parents 5957990 + 558b073 commit 9c873c1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/ci/docker/host-x86_64/mingw-check/Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ ENV PATH="/node-v14.4.0-linux-x64/bin:${PATH}"
2222
# Install es-check
2323
# Pin its version to prevent unrelated CI failures due to future es-check versions.
2424
RUN npm install [email protected] -g
25+
RUN npm install [email protected] -g
2526

2627
COPY scripts/sccache.sh /scripts/
2728
RUN sh /scripts/sccache.sh
@@ -37,4 +38,5 @@ ENV SCRIPT python3 ../x.py --stage 2 test src/tools/expand-yaml-anchors && \
3738
python3 ../x.py doc --stage 0 library/test && \
3839
/scripts/validate-toolstate.sh && \
3940
# Runs checks to ensure that there are no ES5 issues in our JS code.
40-
es-check es5 ../src/librustdoc/html/static/*.js
41+
es-check es5 ../src/librustdoc/html/static/*.js && \
42+
eslint ../src/librustdoc/html/static/*.js
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
/* global initSidebarItems */
12
initSidebarItems({});

0 commit comments

Comments
 (0)