File tree Expand file tree Collapse file tree 9 files changed +204
-266
lines changed
Expand file tree Collapse file tree 9 files changed +204
-266
lines changed Original file line number Diff line number Diff line change @@ -50,10 +50,10 @@ jobs:
5050 with :
5151 node-version : 24.x
5252
53- - name : Install ESLint
53+ - name : Install dependencies
5454 run : |
55- npm install --include=dev eslint@8.57.1
56- npm install --include=dev @microsoft/eslint-formatter-sarif@3.0.0
55+ npm ci --legacy-peer-deps
56+ npm install --legacy-peer-deps @microsoft/eslint-formatter-sarif@3.0.0
5757
5858 - name : Test ESLint
5959 run : |
Original file line number Diff line number Diff line change 4545 with :
4646 node-version : ${{ matrix.node-version }}
4747
48- - name : Install ESLint
48+ - name : Install dependencies
4949 run : |
50- npm install --include=dev eslint@8.57.1
50+ npm ci --legacy-peer-deps
5151
5252 - name : Test ESLint
5353 run : |
Original file line number Diff line number Diff line change 2525 node-version : 24.x
2626
2727 - name : Install dependencies
28- run : npm ci --verbose
28+ run : npm ci --legacy-peer-deps
2929
3030 - name : Lint
3131 run : npm run lint
Original file line number Diff line number Diff line change 3131 node-version : ${{ matrix.node-version }}
3232
3333 - name : Install dependencies
34- run : npm ci --verbose
34+ run : npm ci --legacy-peer-deps
3535
3636 - name : Run the tests
3737 run : npm run jest:ci
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ COPY ./.yamlignore ${WORKDIR}/
5454COPY ./.gitignore ${WORKDIR}/
5555
5656# Dependencies
57- RUN npm ci --verbose --ignore-scripts
57+ RUN npm ci --legacy-peer-deps --ignore-scripts
5858
5959CMD ["make" , "lint" ]
6060# ##############################################################################
@@ -122,7 +122,7 @@ COPY ./Makefile ${WORKDIR}/
122122COPY ./package.json ${WORKDIR}/package.json
123123COPY ./package-lock.json ${WORKDIR}/package-lock.json
124124
125- RUN npm ci --verbose --omit=dev --omit=optional --ignore-scripts --no-cache \
125+ RUN npm ci --legacy-peer-deps --omit=dev --omit=optional --ignore-scripts --no-cache \
126126 && ls -alh
127127
128128USER node
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ dependencies:
6969 @echo " ################################################################################"
7070 @echo " ## Dependencies: ###############################################################"
7171 @echo " ################################################################################"
72- test -x ./node_modules || npm install --verbose
72+ test -x ./node_modules || npm install --verbose --legacy-peer-deps
7373 @echo " ################################################################################"
7474
7575lint/json :
Original file line number Diff line number Diff line change @@ -63,6 +63,10 @@ export default [
6363 'no-restricted-syntax' : 0 ,
6464 'no-console' : 'off' ,
6565 'no-underscore-dangle' : 0 ,
66+ // Disable jest rules that require TypeScript type information
67+ 'jest/no-error-equal' : 0 ,
68+ 'jest/no-unnecessary-assertion' : 0 ,
69+ 'jest/valid-expect-with-promise' : 0 ,
6670
6771 'no-plusplus' : [
6872 'error' ,
You can’t perform that action at this time.
0 commit comments