-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
Conversation
6b876e7
to
3fd11eb
Compare
3fd11eb
to
2000f64
Compare
There was a problem hiding this 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔
There was a problem hiding this comment.
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.
* Update prettier * Use shared ESLint config * eslint --ext .ts . --fix
* Update prettier * Use shared ESLint config * eslint --ext .ts . --fix
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.