mirror of
https://github.com/nodejs/node.git
synced 2024-11-30 15:30:56 +01:00
15599cbc97
* Remove pinning of eslint-plugin-markdown An issue affecting Node.js source has been fixed in eslint-plugin-markdown so we don't need to pin it to beta-4 anymore. Refs: https://github.com/eslint/eslint-plugin-markdown/issues/69 * Update eslint-plugin-markdown up to 1.0.0-beta.7 * Fix docs for eslint-plugin-markdown@1.0.0-beta.7 PR-URL: https://github.com/nodejs/node/pull/14047 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
30 lines
719 B
Bash
Executable File
30 lines
719 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Shell script to update ESLint in the source tree to the latest release.
|
|
|
|
# Depends on npm and node being in $PATH.
|
|
|
|
# This script must be be in the tools directory when it runs because it uses
|
|
# $BASH_SOURCE[0] to determine directories to work in.
|
|
|
|
cd "$( dirname "${BASH_SOURCE[0]}" )"
|
|
rm -rf eslint
|
|
mkdir eslint-tmp
|
|
cd eslint-tmp
|
|
|
|
npm install --global-style --no-bin-links --production eslint@latest
|
|
cd node_modules/eslint
|
|
|
|
npm install --no-bin-links --production eslint-plugin-markdown@next
|
|
cd ../..
|
|
|
|
# Install dmn if it is not in path.
|
|
type -P dmn || npm install -g dmn
|
|
|
|
# Use dmn to remove some unneeded files.
|
|
dmn -f clean
|
|
|
|
cd ..
|
|
mv eslint-tmp/node_modules/eslint eslint
|
|
rm -rf eslint-tmp/
|