Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

docs: simplify instructions in README #53

Merged
merged 1 commit into from Jul 17, 2019
Merged

Conversation

wincent
Copy link
Contributor

@wincent wincent commented Jul 17, 2019

While preparing this:

brianchandotcom/liferay-portal#75811

I realized that the instructions in the README here were wrong: you don't need to extend "liferay/portal" explicitly ever; instead you get it by default thanks to liferay-npm-scripts. This is true even when you extend "liferay/react" or "liferay/metal" in liferay-portal -- you wind up with a merged list of "liferay/portal" plus "liferay/react" (or "liferay/metal").

So, I de-emphasized the "liferay/portal" section by moving it down, and I noted that it is used automatically.

I also simplified the ".eslintrc.js" examples by removing the empty "rules" sections, because we don't want to actively encourage overriding in any case.

While preparing this:

brianchandotcom/liferay-portal#75811

I realized that the instructions in the README here were wrong: you
don't need to extend "liferay/portal" explicitly ever; instead you get
it by default thanks to liferay-npm-scripts. This is true even when you
extend "liferay/react" or "liferay/metal" in liferay-portal -- you wind
up with a merged list of "liferay/portal" plus "liferay/react" (or
"liferay/metal").

So, I de-emphasized the "liferay/portal" section by moving it down, and
I noted that it is used automatically.

I also simplified the ".eslintrc.js" examples by removing the empty
"rules" sections, because we don't want to actively encourage overriding
in any case.
@jbalsas jbalsas merged commit 1c686ad into master Jul 17, 2019
@wincent wincent deleted the wincent/readme-updates branch July 17, 2019 15:49
liferay-continuous-integration-hu pushed a commit to jcampoy/liferay-portal that referenced this pull request Oct 21, 2019
As described here:

liferay/eslint-config-liferay#53

I realized that we don't need to include "liferay/portal" explicitly
because it already has effect everywhere, automatically, thanks to
liferay-npm-scripts.

I'll make the next version of liferay-npm-scripts detect and report this
kind of redundancy to stop these sneaking in again.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants