Skip to content

Commit f3828c9

Browse files
zhangyongshengtargos
zhangyongsheng
authored andcommitted
tools: fix update-eslint.sh
PR-URL: #36579 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent e1f00fd commit f3828c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/update-eslint.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,26 @@
99

1010
cd "$( dirname "$0" )" || exit
1111
rm -rf node_modules/eslint
12-
{
12+
(
1313
mkdir eslint-tmp
1414
cd eslint-tmp || exit
1515
npm init --yes
1616

1717
npm install --global-style --no-bin-links --production --no-package-lock eslint@latest
1818

19-
{
19+
(
2020
cd node_modules/eslint || exit
2121

2222
npm install --no-bin-links --production --no-package-lock eslint-plugin-markdown@latest
23-
}
23+
)
2424

2525

2626
# Use dmn to remove some unneeded files.
2727
npx dmn@2.2.2 -f clean
2828
# Use removeNPMAbsolutePaths to remove unused data in package.json.
2929
# This avoids churn as absolute paths can change from one dev to another.
3030
npx removeNPMAbsolutePaths@1.0.4 .
31-
}
31+
)
3232

3333
mv eslint-tmp/node_modules/eslint node_modules/eslint
3434
rm -rf eslint-tmp/

0 commit comments

Comments
 (0)