-
Notifications
You must be signed in to change notification settings - Fork 379
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
chore: add eslint-plugin-node #221
Conversation
This will warn us against unsupported features without waiting for CI to run Also upgrade all dated dependencies
lib/summary.js
Outdated
@@ -13,7 +13,7 @@ const validateLabels = require('./validation').validateLabel; | |||
const validateMetricName = require('./validation').validateMetricName; | |||
const validateLabelNames = require('./validation').validateLabelName; | |||
const TDigest = require('tdigest').TDigest; | |||
const isObject = require('util').isObject; | |||
const isObject = require('./util').isObject; |
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.
probably a typo, but isObject
from core util
module is deprecated
@@ -9,7 +9,7 @@ | |||
"index.d.ts" | |||
], | |||
"engines": { | |||
"node": ">=6" | |||
"node": ">=6.1" |
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.
6.1 for cpuUsage
. Probably OK to sneak in here, it's years old by this point
The second commit uses object destructuring instead of importing the same module multiple times (hitting the require cache, so just verbosity, no perf hit). Recommended to review individual commits |
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.
Love the destructuring cleanup. 👍
This will warn us against unsupported features without waiting for CI
to run
Also upgrade all dated dependencies
Motivation is if we use e.g. Object.entries, we normally have to wait for CI to fail. Now we'll get a linting error in our IDE or precommit: