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

chore(*): Fix eslint configs #2140

Merged
merged 18 commits into from
Oct 31, 2023
Merged

chore(*): Fix eslint configs #2140

merged 18 commits into from
Oct 31, 2023

Conversation

imagoiq
Copy link
Contributor

@imagoiq imagoiq commented Oct 26, 2023

No description provided.

@imagoiq imagoiq self-assigned this Oct 26, 2023
@changeset-bot
Copy link

changeset-bot bot commented Oct 26, 2023

⚠️ No Changeset found

Latest commit: 842f7e2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@swisspost-bot
Copy link
Contributor

swisspost-bot commented Oct 26, 2023

Preview environment ready: https://preview-2140--swisspost-web-frontend.netlify.app
Preview environment ready: https://preview-2140--swisspost-design-system-next.netlify.app

parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
tsconfigRootDir: __dirname,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Convert to js to be able to use __dirname

@imagoiq imagoiq marked this pull request as ready for review October 30, 2023 07:53
@imagoiq imagoiq requested a review from a team as a code owner October 30, 2023 07:53
imagoiq added a commit that referenced this pull request Oct 31, 2023
#2072 introduces some
sub-dependencies changes similarly to the initial PR of this revert:
#2083. This breaks e2e
tests for components and internet-header. `*.entry.js` files are not
generated/copied to the documentation assets folder and creates a 404
when we try to use a web component.

For testing, I cherry-pick the commit of this PR to
#2140

Also upgrading to Stencil 4
(#2116) does not fix this
issue.
@gfellerph gfellerph self-requested a review October 31, 2023 08:39
Copy link
Member

@gfellerph gfellerph left a comment

Choose a reason for hiding this comment

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

Looking good so far

@@ -0,0 +1,77 @@
module.exports = {
Copy link
Member

Choose a reason for hiding this comment

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

I got an error that this file can be converted to an es module (the automatic migration does not work, but export default works for me)

Suggested change
module.exports = {
export default {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately, it's not as easy as that. I think the error only appears in your IDE, but not the tools. We need to make a lot of changes so I created another ticket for that: #2167

"exclude": [
"node_modules"
]
"include": ["src", "**/tests"],
Copy link
Member

Choose a reason for hiding this comment

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

Another error says that the eslint config file is not linted.

Suggested change
"include": ["src", "**/tests"],
"include": ["src", ".eslintrc.js", "**/tests"],

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I cannot reproduce it. Where does the error appear?

Copy link
Member

Choose a reason for hiding this comment

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

It only appears when the above suggestion is applied, so it will be fixed with #2167

packages/internet-header/.eslintignore Outdated Show resolved Hide resolved
@sonarcloud
Copy link

sonarcloud bot commented Oct 31, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@imagoiq imagoiq merged commit 29888b9 into main Oct 31, 2023
10 checks passed
@imagoiq imagoiq deleted the chore/fix-eslint-config branch October 31, 2023 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix eslint config in packages and improve prettier config sync across the team
4 participants