Skip to content

Commit 661960e

Browse files
Trottdanielleadams
authored andcommitted
tools: include JSDoc in ESLint updating tool
PR-URL: #41027 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
1 parent 62c4b4c commit 661960e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/update-eslint.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,15 @@ rm -rf node_modules/eslint
2222
"$NODE" "$NPM" init --yes
2323

2424
"$NODE" "$NPM" install --global-style --no-bin-links --ignore-scripts eslint
25-
(cd node_modules/eslint && "$NODE" "$NPM" install --no-bin-links --ignore-scripts --production --omit=peer eslint-plugin-markdown @babel/core @babel/eslint-parser @babel/plugin-syntax-import-assertions)
25+
# Uninstall plugins that we want to install so that they are removed from devDependencies.
26+
# Otherwise --production will cause them to be skipped.
27+
(cd node_modules/eslint && "$NODE" "$NPM" uninstall --ignore-scripts eslint-plugin-jsdoc eslint-plugin-markdown @babel/core @babel/eslint-parser @babel/plugin-syntax-import-assertions)
28+
(cd node_modules/eslint && "$NODE" "$NPM" install --no-save --no-bin-links --ignore-scripts --production --omit=peer eslint-plugin-jsdoc eslint-plugin-markdown @babel/core @babel/eslint-parser @babel/plugin-syntax-import-assertions)
2629
# Use dmn to remove some unneeded files.
2730
"$NODE" "$NPM" exec -- [email protected] -f clean
2831
# TODO: Get this into dmn.
2932
find node_modules -name .package-lock.json -exec rm {} \;
33+
find node_modules -name 'README*' -exec rm {} \;
3034
)
3135

3236
mv eslint-tmp/node_modules/eslint node_modules/eslint

0 commit comments

Comments
 (0)