Skip to content

Commit

Permalink
install peer deps for external configs, since we need to work on npm@6
Browse files Browse the repository at this point in the history
  • Loading branch information
andreineculau committed Feb 5, 2022
1 parent 1b5ca51 commit 9be9b73
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ YP_ECLINT_FILES_IGNORE += \
-e "^test/order-imports\.test\.js$$" \

YP_DEPS_TARGETS += \
deps-npm-peer \
.github/workflows/main.yml \
configs/index.js \
rules/index.js \
Expand All @@ -95,6 +96,23 @@ YP_TEST_TARGETS += \

# ------------------------------------------------------------------------------

.PHONY: deps-npm-peer
deps-npm-peer:
# we only support npm@6+, so no reason to check for older npm versions)
ifeq (6,$(shell $(NPM) --version | $(CUT) -d. -f1))
$(NPX) install-peerdeps --dev --only-peers eslint-config-airbnb
$(NPX) install-peerdeps --dev --only-peers eslint-config-airbnb-base
$(NPX) install-peerdeps --dev --only-peers eslint-config-airbnb-typescript
$(NPX) install-peerdeps --dev --only-peers eslint-config-airbnb-canonical
$(NPX) install-peerdeps --dev --only-peers eslint-config-airbnb-standard@^17.0.0-1
$(NPX) install-peerdeps --dev --only-peers eslint-plugin-flowtype
$(NPX) install-peerdeps --dev --only-peers @graphql-eslint/eslint-plugin
else
$(ECHO_INFO) "$(NPM) version $(shell $(NPM) --version) should be automatically install peer dependencies."
$(ECHO_SKIP) "$(NPX) install-peerdeps"
endif


.github/workflows/main.yml: yplatform/package.json
.github/workflows/main.yml: $(wildcard .github/workflows.src/main*)
.github/workflows/main.yml: .github/workflows/main.yml.tpl
Expand Down
15 changes: 14 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
"description": "The ESLint plugin used within Y Software AB.",
"version": "0.14.0-rc.6",
"license": "Unlicense",
"engines": {
"node": ">=12",
"npm": ">=6"
},
"files": [
"/*.js",
"/BUILD",
Expand Down Expand Up @@ -49,6 +53,8 @@
"@babel/core": "^7.13.0",
"@babel/eslint-parser": "^7.13.0",
"@babel/eslint-plugin": "^7.13.0",
"@babel/plugin-syntax-flow": "^7.16.7",
"@babel/plugin-transform-react-jsx": "^7.16.7",
"@getify/eslint-plugin-proper-arrows": "^11.0.3",
"@rushstack/eslint-patch": "^1.1.0",
"@types/lodash": ">=4.14.161",
Expand All @@ -65,16 +71,23 @@
"eslint-plugin-async-await": "^0.0.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-fp": "^2.3.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jasmine": "^4.1.1",
"eslint-plugin-jest": "^26.0.0",
"eslint-plugin-jsdoc": "^37.7.0",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-lodash": "^7.1.0",
"eslint-plugin-mocha": "^10.0.3",
"eslint-plugin-n": "^14.0.0",
"eslint-plugin-no-null": "^1.0.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-protractor": "^2.1.1",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-vue": "^8.4.0",
"eslint-plugin-y": "file:.",
"graphql": "^16.3.0",
"js-yaml": "^3.14.1",
"npm-publish-git": "git://github.com/ysoftwareab/npm-publish-git.git#semver:~0.0.12",
"outdent": "^0.8.0",
Expand Down

0 comments on commit 9be9b73

Please sign in to comment.