-
Notifications
You must be signed in to change notification settings - Fork 414
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
Eslint config is broken and is not working + enhancing it by add some rules #9190
Comments
My opinions about new rules:
I can suggest also for the future
Anyway, in general, I'd like to reduce as much as possible our style rules in favor of standard ones, if possible, so we do not have to maintain a custom eslint configuration. We should see if there is some common used standard config that matches our requirements, maybe the best option |
just want pin out that "comma-dangle" rule is not applied to json, but i feel it is kinda handy to have it, |
Closed in favor of #10005 |
Description
I checked current config is broken and has never worked since March 2021 !
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"] }],
enhancements
in order to improve the current codebase we can add the following rules
How to reproduce
Expected Result
to work fine with no errors
Current Result
actually it is not executed because of some errors, you can notice this with vscode if you open
Browser info
(use this site: https://www.whatsmybrowser.org/ for non expert users)Other useful information
The text was updated successfully, but these errors were encountered: