Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Update ESLint config #706

Merged
merged 1 commit into from
Oct 30, 2018
Merged

Update ESLint config #706

merged 1 commit into from
Oct 30, 2018

Conversation

kaicataldo
Copy link
Member

@kaicataldo kaicataldo commented Oct 27, 2018

Looking to pick up #594 again and saw a few things that I thought should be updated in a separate PR.

@@ -0,0 +1 @@
package-lock = false
Copy link
Member Author

Choose a reason for hiding this comment

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

This is to prevent the creation of a package-lock.json file in the event someone uses npm i

"no-var": 0,
"max-len": 0,
"max-len": "off",
"strict": "error",
Copy link
Member Author

Choose a reason for hiding this comment

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

I noticed some files were using directives and some weren't, and I'm assuming we want to be in strict mode for all files.

}
},
parserOptions: {
sourceType: "script",
Copy link
Member Author

@kaicataldo kaicataldo Oct 27, 2018

Choose a reason for hiding this comment

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

{
files: ["test/**/*"],
env: {
mocha: true
Copy link
Member Author

Choose a reason for hiding this comment

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

Scoping this env just to tests so that we don't accidentally use these globals in the source code.

@kaicataldo kaicataldo changed the title Use const/let and default params Use const/let Oct 28, 2018
@kaicataldo kaicataldo changed the title Use const/let Update ESLint config Oct 28, 2018
@kaicataldo kaicataldo merged commit ef1fc0e into babel:master Oct 30, 2018
@kaicataldo kaicataldo deleted the es6 branch October 30, 2018 19:48
nicolo-ribaudo pushed a commit to babel/babel that referenced this pull request Nov 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants