-
Notifications
You must be signed in to change notification settings - Fork 409
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
Proposal to enhance eslint config, plus fixing current configuration #9188
Conversation
@@ -49,7 +49,7 @@ | |||
"@geosolutions/acorn-jsx": "4.0.2", | |||
"@geosolutions/jsdoc": "3.4.4", | |||
"@geosolutions/mocha": "6.2.1-3", | |||
"@mapstore/eslint-config-mapstore": "1.0.5", | |||
"@mapstore/eslint-config-mapstore": "file:./utility/eslint", |
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.
This should not be committed, I think
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.
of course, i did it so the action-build could have used the new config, it's also written in the PR description when i say PR is not mergiable
Thank you so much @MV88 for reporting this. @offtherailz @MV88 @allyoucanmap @dsuren1 I think we could proceed by splitting this in two steps:
We can continue using this PR by maintaining it in draft mode until all problems are solved. Can you please can you hear each other guys and give me an estimate for both points above? |
point 2 can be done slowly by updating the components when a new PR is created in mapstore |
Closed in favore of #10006 |
Description
I checked current config is broken and has never worked since 3 years!!!
check here the broken part https://github.com/geosolutions-it/MapStore2/blob/master/utility/eslint/index.js#L235
now we got
✖4095 problems (4095 errors, 0 warnings)
with --fix becomes
✖ 3869 problems (3869 errors, 0 warnings)
338 PropType is defined but prop is never used "react/no-unused-prop-types": 2
185 render should be placed after
3308 is missing in props validation "react/prop-types": [2, { "ignore": ["children"] }],
This PR is not mergiable because
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x", remove the others)
Issue
What is the current behavior?
#9190
What is the new behavior?
Breaking change
Does this PR introduce a breaking change? (check one with "x", remove the other)
Other useful information
@offtherailz if you approve, please publish it since I cannot do that