-
Notifications
You must be signed in to change notification settings - Fork 14
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
Conversation
|
Preview environment ready: https://preview-2140--swisspost-web-frontend.netlify.app |
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
tsconfigRootDir: __dirname, |
There was a problem hiding this comment.
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
#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.
There was a problem hiding this 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 = { |
There was a problem hiding this comment.
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)
module.exports = { | |
export default { |
There was a problem hiding this comment.
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"], |
There was a problem hiding this comment.
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.
"include": ["src", "**/tests"], | |
"include": ["src", ".eslintrc.js", "**/tests"], |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
No description provided.