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 violation and lessen rule strictness #6081

Merged
merged 6 commits into from Jun 23, 2020
Merged

Conversation

jackfranklin
Copy link
Collaborator

No description provided.

@@ -100,6 +100,11 @@ module.exports = {
"@typescript-eslint/semi": 2,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-use-before-define": 0,
// We have to use any on some types so the warning isn't valuable.
Copy link
Contributor

Choose a reason for hiding this comment

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

:(

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah :( Long term we'll use the TS compiler strictness options to get rid of this but these warnings are adding no value.

@@ -67,7 +67,7 @@ describe('Emulation', () => {
function dispatchTouch() {
let fulfill;
const promise = new Promise((x) => (fulfill = x));
window.ontouchstart = function (e) {
window.ontouchstart = () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

But why though?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the majority of the codebase + tests use arrow functions - this one stood out to me so I just swapped it out

Copy link
Contributor

@paullewis paullewis left a comment

Choose a reason for hiding this comment

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

LGTM with curiosity question

@jackfranklin jackfranklin merged commit 70a900e into main Jun 23, 2020
@mathiasbynens mathiasbynens deleted the eslint-fixes branch June 30, 2020 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants