We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f081b2 commit 8fc9cceCopy full SHA for 8fc9cce
.github/workflows/ci.yml
@@ -139,6 +139,17 @@ jobs:
139
if: ${{ matrix.npm-i != '' }}
140
run: npm install --save-dev ${{ matrix.npm-i }}
141
142
+ - name: Remove eslint
143
+ shell: bash
144
+ run: |
145
+ # eslint for linting
146
+ # - remove on Node.js < 12
147
+ if [[ "$(cut -d. -f1 <<< "${{ matrix.node-version }}")" -lt 12 ]]; then
148
+ node -pe 'Object.keys(require("./package").devDependencies).join("\n")' | \
149
+ grep -E '^eslint(-|$)' | \
150
+ sort -r | \
151
+ xargs -n1 npm rm --silent --save-dev
152
+ fi
153
- name: Install dependencies
154
run: npm install
155
0 commit comments