Skip to content

Use shared ESLint config - #265

Merged
whymarrh merged 3 commits into
developfrom
shared-eslint-config
Sep 9, 2020
Merged

Use shared ESLint config#265
whymarrh merged 3 commits into
developfrom
shared-eslint-config

Conversation

@whymarrh

@whymarrhwhymarrh commented Sep 7, 2020

Copy link
Copy Markdown
Contributor

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
whymarrhforce-pushed the shared-eslint-config branch 3 times, most recently from 6b876e7 to 3fd11ebCompareSeptember 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 ownerSeptember 8, 2020 17:19

@GudahttGudahtt left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
Member

Choose a reason for hiding this comment

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

🤔

Copy link
Copy Markdown
ContributorAuthor

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 developSep 9, 2020
@whymarrh
whymarrh deleted the shared-eslint-config branch September 9, 2020 12:49
Mrtenz pushed a commit to Mrtenz/core that referenced this pull request Jun 17, 2026
…taMask#265)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
Sign up for freeto 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

@whymarrh@Gudahtt