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

Use shared ESLint config #265

Merged
merged 3 commits into from
Sep 9, 2020
Merged

Use shared ESLint config #265

merged 3 commits into from
Sep 9, 2020

Conversation

whymarrh
Copy link
Contributor

@whymarrh whymarrh commented Sep 7, 2020

Closes #242

This PR migrates the project to the shared ESLint config.

Tip: Ignore white space in code review

I've disabled a lot of rules to get everything passing—a few to have Prettier and ESLint play nicely together, a lot more because of how the tests & sources are currently written. We can enable them one-by-one in future PRs.

@whymarrh whymarrh force-pushed the shared-eslint-config branch 3 times, most recently from 6b876e7 to 3fd11eb Compare September 7, 2020 18:46
@whymarrh whymarrh marked this pull request as ready for review September 8, 2020 17:19
@whymarrh whymarrh requested a review from a team as a code owner September 8, 2020 17:19
Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -1,10 +1,13 @@
import BaseController, { BaseConfig, BaseState } from '../BaseController';

// TODO: Destructuring this line introduces a compilation error
Copy link
Member

Choose a reason for hiding this comment

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

🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess TypeScript doesn't notice it until it's destructured—the BN type is used in a public-facing type but isn't exported itself, which makes it hard (impossible in some cases) for consumers of the package to get the types to work. This doesn't affect us right now since we don't use these types anywhere.

@whymarrh whymarrh merged commit c4a5911 into develop Sep 9, 2020
@whymarrh whymarrh deleted the shared-eslint-config branch September 9, 2020 12:49
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
* Update prettier

* Use shared ESLint config

* eslint --ext .ts . --fix
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
* Update prettier

* Use shared ESLint config

* eslint --ext .ts . --fix
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.

Use shared ESLint config
2 participants