Skip to content

Commit 7ed6cf0

Browse files
committed
build: don't store eslint locally
1 parent 7702aab commit 7ed6cf0

File tree

3,132 files changed

+107
-409028
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,132 files changed

+107
-409028
lines changed

β€Ž.editorconfigβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ indent_size = unset
2323
indent_style = unset
2424
trim_trailing_whitespace = unset
2525

26-
[{test/fixtures,deps,tools/eslint/node_modules,tools/gyp,tools/icu,tools/msvs}/**]
26+
[{test/fixtures,deps,tools/gyp,tools/icu,tools/msvs}/**]
2727
insert_final_newline = false

β€Ž.github/workflows/tools.ymlβ€Ž

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ on:
2121
- cjs-module-lexer
2222
- corepack
2323
- doc
24-
- eslint
2524
- github_reporter
2625
- googletest
2726
- gyp-next
@@ -128,14 +127,6 @@ jobs:
128127
npm install --ignore-scripts $NEW_VERSION
129128
npm install --ignore-scripts
130129
fi
131-
- id: eslint
132-
subsystem: tools
133-
label: tools
134-
run: |
135-
./tools/dep_updaters/update-eslint.sh > temp-output
136-
cat temp-output
137-
tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
138-
rm temp-output
139130
- id: github_reporter
140131
subsystem: tools
141132
label: tools

β€Ž.gitignoreβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ tools/*/*.i.tmp
112112
/node_modules
113113
/tools/doc/node_modules
114114
/tools/clang-format/node_modules
115+
/tools/eslint/node_modules
115116

116117
# === Rules for test artifacts ===
117118
/*.tap

β€ŽLICENSEβ€Ž

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2003,29 +2003,6 @@ The externally maintained libraries used by Node.js are:
20032003
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
20042004
"""
20052005

2006-
- ESLint, located at tools/eslint/node_modules/eslint, is licensed as follows:
2007-
"""
2008-
Copyright OpenJS Foundation and other contributors, <www.openjsf.org>
2009-
2010-
Permission is hereby granted, free of charge, to any person obtaining a copy
2011-
of this software and associated documentation files (the "Software"), to deal
2012-
in the Software without restriction, including without limitation the rights
2013-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2014-
copies of the Software, and to permit persons to whom the Software is
2015-
furnished to do so, subject to the following conditions:
2016-
2017-
The above copyright notice and this permission notice shall be included in
2018-
all copies or substantial portions of the Software.
2019-
2020-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2021-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2022-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2023-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2024-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2025-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2026-
THE SOFTWARE.
2027-
"""
2028-
20292006
- gtest, located at deps/googletest, is licensed as follows:
20302007
"""
20312008
Copyright 2008, Google Inc.

β€ŽMakefileβ€Ž

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,7 +1193,6 @@ $(TARBALL): release-only doc-only
11931193
$(RM) -r $(TARNAME)/tools/eslint
11941194
$(RM) -r $(TARNAME)/tools/eslint-rules
11951195
$(RM) -r $(TARNAME)/tools/license-builder.sh
1196-
$(RM) -r $(TARNAME)/tools/eslint/node_modules
11971196
$(RM) -r $(TARNAME)/tools/osx-*
11981197
$(RM) -r $(TARNAME)/tools/osx-pkg.pmdoc
11991198
find $(TARNAME)/deps/v8/test/* -type d ! -regex '.*/test/torque$$' | xargs $(RM) -r
@@ -1389,10 +1388,15 @@ lint-js-fix:
13891388

13901389
.PHONY: lint-js
13911390
.PHONY: lint-js-doc
1391+
.PHONY: lint-js-build
1392+
1393+
lint-js-build:
1394+
cd tools/eslint && $(call available-node,$(run-npm-ci))
1395+
13921396
# Note that on the CI `lint-js-ci` is run instead.
13931397
# Lints the JavaScript code with eslint.
13941398
lint-js-doc: LINT_JS_TARGETS=doc
1395-
lint-js lint-js-doc:
1399+
lint-js lint-js-doc: lint-js-build
13961400
@if [ "$(shell $(node_use_openssl))" != "true" ]; then \
13971401
echo "Skipping $@ (no crypto)"; \
13981402
else \
@@ -1409,7 +1413,7 @@ run-lint-js-ci = tools/eslint/node_modules/eslint/bin/eslint.js \
14091413

14101414
.PHONY: lint-js-ci
14111415
# On the CI the output is emitted in the TAP format.
1412-
lint-js-ci:
1416+
lint-js-ci: lint-js-build
14131417
$(info Running JS linter...)
14141418
@$(call available-node,$(run-lint-js-ci))
14151419

@@ -1563,7 +1567,6 @@ lint-yaml:
15631567

15641568
.PHONY: lint
15651569
.PHONY: lint-ci
1566-
ifneq ("","$(wildcard tools/eslint/node_modules/eslint/)")
15671570
lint: ## Run JS, C++, MD and doc linters.
15681571
@EXIT_STATUS=0 ; \
15691572
$(MAKE) lint-js || EXIT_STATUS=$$? ; \
@@ -1584,16 +1587,12 @@ lint-ci: lint-js-ci lint-cpp lint-py lint-md lint-addon-docs lint-yaml-build lin
15841587
echo "Conflict marker detected in one or more files. Please fix them first." >&2 ; \
15851588
exit 1 ; \
15861589
fi
1587-
else
1588-
lint lint-ci:
1589-
$(info Linting is not available through the source tarball.)
1590-
$(info Use the git repo instead: $$ git clone https://github.com/nodejs/node.git)
1591-
endif
15921590

15931591
.PHONY: lint-clean
15941592
lint-clean:
15951593
$(RM) tools/.*lintstamp
15961594
$(RM) .eslintcache
1595+
$(RM) tools/eslint/node_modules
15971596

15981597
HAS_DOCKER ?= $(shell command -v docker > /dev/null 2>&1; [ $$? -eq 0 ] && echo 1 || echo 0)
15991598

β€Žpyproject.tomlβ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ exclude = [
44
"tools/cpplint.py",
55
"tools/gyp",
66
"tools/inspector_protocol",
7-
"tools/eslint/node_modules",
87
]
98
line-length = 172
109
target-version = "py37"

β€Žtools/dep_updaters/update-eslint.shβ€Ž

Lines changed: 0 additions & 49 deletions
This file was deleted.

β€Žtools/eslint/node_modules/@ampproject/remapping/LICENSEβ€Ž

Lines changed: 0 additions & 202 deletions
This file was deleted.

0 commit comments

Comments
Β (0)