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

Set up ESLint with @typescript-eslint packages #118

Merged
merged 25 commits into from
Jan 28, 2019

Conversation

iquabius
Copy link
Owner

@iquabius iquabius commented Jan 28, 2019

@typescript-eslint seems to be the way to go since it actually uses TypeScript under the hood. The alternative is Babel, which "parses and strips the type information, you still need the TypeScript compiler running if you want type checking." see babel/babel-eslint#63

The future of TypeScript on ESLint (Jan 2019)

Closes #51

@codecov-io
Copy link

codecov-io commented Jan 28, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@13b6bbf). Click here to learn what that means.
The diff coverage is 55.55%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #118   +/-   ##
=========================================
  Coverage          ?   24.71%           
=========================================
  Files             ?      106           
  Lines             ?     1323           
  Branches          ?      183           
=========================================
  Hits              ?      327           
  Misses            ?      996           
  Partials          ?        0
Impacted Files Coverage Δ
api/src/__tests__/__utils.ts 100% <ø> (ø)
web/src/utils/test/FakeDataProvider.tsx 100% <ø> (ø)
web/src/components/SchoolTable/SchoolAddDialog.tsx 0% <ø> (ø)
web/src/components/Question/Form/index.tsx 0% <ø> (ø)
web/src/components/City/DeleteItemButton.tsx 0% <ø> (ø)
api/src/resolvers/Query.ts 18.18% <ø> (ø)
web/src/components/PageContext.tsx 0% <ø> (ø)
web/src/utils/helpers.ts 33.33% <ø> (ø)
web/src/components/User/LoginConnector.tsx 0% <ø> (ø)
web/src/components/Question/ChoicesBox.tsx 100% <ø> (ø)
... and 16 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 13b6bbf...edd1a8f. Read the comment docs.

This pattern should be discouraged.
The autoFocus prop should be avoided as it can
cause accessibility problems
"Enforce onClick is accompanied by at least one of the following:
onKeyUp, onKeyDown, onKeyPress.
Coding for the keyboard is important for users with physical
disabilities who cannot use a mouse, AT compatibility,
and screenreader users."

https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/click-events-have-key-events.md
@iquabius iquabius merged commit 7a04db9 into master Jan 28, 2019
@iquabius iquabius deleted the chore/tooling/bring-eslint-back branch January 28, 2019 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants