Skip to content

Use @metamask/eslint-config#14

Merged
rekmarks merged 3 commits intomasterfrom
standardize-repo
May 11, 2020
Merged

Use @metamask/eslint-config#14
rekmarks merged 3 commits intomasterfrom
standardize-repo

Conversation

@rekmarks
Copy link
Copy Markdown
Member

  • Add @metamask/eslint-config and related packages
  • Lint

@rekmarks rekmarks changed the base branch from master to update-packages May 11, 2020 20:07
brad-decker
brad-decker previously approved these changes May 11, 2020
@rekmarks rekmarks changed the base branch from update-packages to master May 11, 2020 20:45
@rekmarks rekmarks dismissed brad-decker’s stale review May 11, 2020 20:45

The base branch was changed.

@rekmarks rekmarks force-pushed the standardize-repo branch from 56decd9 to 4e5282e Compare May 11, 2020 22:52
.eslintrc.js Outdated
@@ -0,0 +1,29 @@
module.exports = {
env: {
Copy link
Copy Markdown
Member

@Gudahtt Gudahtt May 11, 2020

Choose a reason for hiding this comment

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

It would be better to omit this if possible. All the env property does is enable the corresponding global variables, and we don't want to allow any browser globals to be used ideally (since this module can also be used in a Node.js environment).

We can omit es6 as well, since it's implied by the setting our ecmaVersion to 2018. So I suppose commonjs is all we need to include (so that require is allowed as a global)?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Looks like we could remove even more stuff than that! cdbc270

Copy link
Copy Markdown
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!

@rekmarks rekmarks merged commit 73e7254 into master May 11, 2020
@rekmarks rekmarks deleted the standardize-repo branch March 11, 2021 05:25
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.

3 participants