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

Format typescript code with prettier #90

Merged
merged 1 commit into from
May 18, 2020
Merged

Conversation

yong-jie
Copy link
Member

@yong-jie yong-jie commented May 18, 2020

Problem

Our eslint config for typescript files does not contain prettier extensions. This leads to conflicting errors between raw eslint and prettier.

Solution

Edit the eslint config for typescript to contain prettier extensions.

Copy link
Contributor

@kylerwsm kylerwsm left a comment

Choose a reason for hiding this comment

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

Looks good to me. Prettier is well configured, and CI lints without throwing errors

Comment on lines +6 to +7
"prettier/@typescript-eslint",
"plugin:prettier/recommended"
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks good!

@yong-jie yong-jie merged commit ba2551d into develop May 18, 2020
@yong-jie yong-jie deleted the format-ts-prettier branch May 18, 2020 08:03
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