-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Stricter linter #3095
Stricter linter #3095
Conversation
9bda966
to
ef72d5a
Compare
Thanks for attacking this! |
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.
Nice one
@@ -81,6 +81,7 @@ module.exports = function Dashboard (props) { | |||
onDrop={props.handleDrop} | |||
> | |||
<div | |||
aria-hidden="true" |
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.
Why was this added?
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.
83:7 error Visible, non-interactive elements with click handlers must have at least one keyboard listener jsx-a11y/click-events-have-key-events
83:7 error Static HTML elements with event handlers require a role jsx-a11y/no-static-element-interactions
Since it's the overlay, I thought the easiest thing to do was to hide it from screen readers, but maybe there's a better way?
Some tests are still failing though |
2214b56
to
d8009a7
Compare
* 'main' of https://github.com/transloadit/uppy: Add referrer to transloadit.com link (#3116) @uppy/locales latest version is 1.22.0 🙈 Stricter linter (#3095) @uppy/aws-s3: refactor to use private fields (#3094) build: fix legacy bundle (#3112) Fix locales — point to CDN v1.31.0
* main: (23 commits) Release Set node version in `workflows/cdn.yml` to 16.x Release build: add stylelint (#3124) Core: rename allowMultipleUploads to allowMultipleUploadBatches (#3115) meta: enforce `no-unused-vars` linter rule (#3118) writing-plugins: update example to use `i18nInit` (#3122) @uppy/core: reject empty string as valid value for required meta fields (#3119) Safely escape <script> injected code in companion `send-token.js` (#3101) @uppy/dashboard: fix metafield form validation (#3113) Clean up `BACKLOG.md` & add Vimeo as todo Add referrer to transloadit.com link (#3116) @uppy/locales latest version is 1.22.0 🙈 Stricter linter (#3095) @uppy/aws-s3: refactor to use private fields (#3094) build: fix legacy bundle (#3112) Fix locales — point to CDN v1.31.0 Fix typo in `docs/companion.md` Changelog for 1.31.0 and patches Strictly type uppy events (#3085) ...
* enforce some eslint rules * enforce accessibility linter rules * harden lint rules with only 1 or 2 warnings * fix remaining rules with less than 3 warnings * fix e2e tests * fix remaining rules with less than 4 warnings * fix remaining rules with less than 6 warnings * fix `shuffleTaglines` * fix companion build
no-await-in-loop
rule as I don't see why we would want to enforce that.Remaining rules that warn: