Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(eslint): rules for customization #1055

Merged
merged 1 commit into from
Mar 22, 2022

Conversation

dhhyi
Copy link
Collaborator

@dhhyi dhhyi commented Mar 9, 2022

PR Type

[x] Feature
[x] Other: Best Practice

What Is the Current Behavior?

When using the Intershop PWA with multiple themes, some best practices should be honored:

  • the THEME variable should not be used in components, instead component file overrides should be used
  • properties templateUrl and styleUrls should always point to the base file, so the override mechanism can step in at build time.

What Is the New Behavior?

Lint rules added.

Does this PR Introduce a Breaking Change?

[ ] Yes
[x] No

Other Information

AB#75105

@dhhyi dhhyi requested a review from MaxKless March 9, 2022 09:54
dhhyi added a commit that referenced this pull request Mar 9, 2022
@dhhyi dhhyi force-pushed the feat/lint-rules-for-customization branch 3 times, most recently from 7053461 to 8dfd9e2 Compare March 9, 2022 18:54
@dhhyi dhhyi added community Community contributions enhancement Enhancement to an existing feature labels Mar 10, 2022
@dhhyi dhhyi marked this pull request as draft March 10, 2022 08:19
dhhyi added a commit that referenced this pull request Mar 10, 2022
@dhhyi dhhyi force-pushed the feat/lint-rules-for-customization branch from 8dfd9e2 to a885582 Compare March 10, 2022 14:12
@dhhyi dhhyi marked this pull request as ready for review March 10, 2022 15:20
Copy link
Collaborator

@MaxKless MaxKless left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks mostly good :)

@dhhyi dhhyi force-pushed the feat/lint-rules-for-customization branch from a885582 to 42f37f5 Compare March 16, 2022 10:25
@dhhyi dhhyi requested a review from MaxKless March 16, 2022 10:28
@MaxKless MaxKless merged commit 8107fcf into develop Mar 22, 2022
@MaxKless MaxKless deleted the feat/lint-rules-for-customization branch March 22, 2022 06:15
@dhhyi dhhyi added this to the 2.2 milestone Mar 22, 2022
SGrueber pushed a commit that referenced this pull request May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Community contributions enhancement Enhancement to an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants