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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade ESLint and all dependencies #79
Conversation
d45f474
to
323fe76
Compare
Pull Request Test Coverage Report for Build 307
馃挍 - Coveralls |
db0466b
to
9095be1
Compare
In order to prepare for future improvements, where the `local-rules/no-prototype-methods` eslint rule detects errors, we upgrade @sinonjs/commons to a version that has cached references to `Map` and `Set`.
In order to satisfy `local-rules/no-prototype-methods`
In order to satisfy `local-rules/no-prototype-methods`
In order to satisfy `local-rules/no-prototype-methods`
In order to satisfy `local-rules/no-prototype-methods`
In order to satisfy `local-rules/no-prototype-methods`
In order to satisfy `local-rules/no-prototype-methods`
This allows us to lint for uncached uses of the object prototypes, which can be stubbed in userland code.
This allows ESLint to detect when uncached references to prototypes are used. * Install eslint-plugin-local-rules plugin * Configure ESLint to use plugin * Ignore errors in tests
As this can take many different forms
In preparation of upgrading to `eslint@latest` and `eslint-config-sinon@latest`
In preparation of upgrading to `eslint@latest` and `eslint-config-sinon@latest`
In preparation of upgrading to `eslint@latest` and `eslint-config-sinon@latest`
In preparation of upgrading to `eslint@latest` and `eslint-config-sinon@latest`
In preparation of upgrading to `eslint@latest` and `eslint-config-sinon@latest`
* And all related plugins and configs * Update eslintrc.yaml to meet `eslint@6` required format
9095be1
to
1bb5e5e
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 馃憤
@@ -74,6 +74,7 @@ function propertyMatcherTests(matcher, additionalTests) { | |||
it("compares with matcher", function() { | |||
var has = matcher("callback", createMatcher.typeOf("function")); | |||
|
|||
// eslint-disable-next-line no-empty-function |
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 think you can alternatively write function () { /* empty */ }
. Just sayin, no need to change here.
@@ -0,0 +1,79 @@ | |||
"use strict"; |
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.
Isn't this something we'd need in all projects? Shouldn't it live in the sinon eslint project?
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.
It is. In the interest of getting this moving, I opted for a bit of duplication, until we figure out how to get it distributed properly.
This PR upgrades ESLint and all related packages to latest versions.
Purpose (TL;DR)
In order to prepare for linting JSDoc, I thought it would be a good idea to get
samsam
caught up with the other projects.That turned out to be more work than I anticipated 馃槷
Solution
no-prototype-methods
fromsinon
How to verify - mandatory
npm install
npm run lint
Checklist for author
npm run lint
passes