Skip to content
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

chore: update prettier #510

Merged
merged 5 commits into from Aug 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion index.js
Expand Up @@ -17,7 +17,8 @@ exports.Summary = require('./lib/summary');
exports.Pushgateway = require('./lib/pushgateway');

exports.linearBuckets = require('./lib/bucketGenerators').linearBuckets;
exports.exponentialBuckets = require('./lib/bucketGenerators').exponentialBuckets;
exports.exponentialBuckets =
require('./lib/bucketGenerators').exponentialBuckets;

exports.collectDefaultMetrics = require('./lib/defaultMetrics');

Expand Down
3 changes: 1 addition & 2 deletions lib/metrics/gc.js
Expand Up @@ -32,8 +32,7 @@ module.exports = (registry, config = {}) => {
: DEFAULT_GC_DURATION_BUCKETS;
const gcHistogram = new Histogram({
name: namePrefix + NODEJS_GC_DURATION_SECONDS,
help:
'Garbage collection duration by kind, one of major, minor, incremental or weakcb.',
help: 'Garbage collection duration by kind, one of major, minor, incremental or weakcb.',
labelNames: ['kind', ...labelNames],
buckets,
registers: registry ? [registry] : undefined,
Expand Down
3 changes: 1 addition & 2 deletions lib/metrics/processHandles.js
Expand Up @@ -20,8 +20,7 @@ module.exports = (registry, config = {}) => {

new Gauge({
name: namePrefix + NODEJS_ACTIVE_HANDLES,
help:
'Number of active libuv handles grouped by handle type. Every handle type is C++ class name.',
help: 'Number of active libuv handles grouped by handle type. Every handle type is C++ class name.',
labelNames: ['type', ...labelNames],
registers,
collect() {
Expand Down
3 changes: 1 addition & 2 deletions lib/metrics/processRequests.js
Expand Up @@ -18,8 +18,7 @@ module.exports = (registry, config = {}) => {

new Gauge({
name: namePrefix + NODEJS_ACTIVE_REQUESTS,
help:
'Number of active libuv requests grouped by request type. Every request type is C++ class name.',
help: 'Number of active libuv requests grouped by request type. Every request type is C++ class name.',
labelNames: ['type', ...labelNames],
registers: registry ? [registry] : undefined,
collect() {
Expand Down
3 changes: 1 addition & 2 deletions lib/metrics/processResources.js
Expand Up @@ -17,8 +17,7 @@ module.exports = (registry, config = {}) => {

new Gauge({
name: namePrefix + NODEJS_ACTIVE_RESOURCES,
help:
'Number of active resources that are currently keeping the event loop alive, grouped by async resource type.',
help: 'Number of active resources that are currently keeping the event loop alive, grouped by async resource type.',
labelNames: ['type', ...labelNames],
registers: registry ? [registry] : undefined,
collect() {
Expand Down
7 changes: 5 additions & 2 deletions package.json
Expand Up @@ -13,9 +13,11 @@
},
"scripts": {
"benchmarks": "node ./benchmarks/index.js",
"test": "npm run lint && npm run compile-typescript && npm run test-unit",
"test": "npm run lint && npm run check-prettier && npm run compile-typescript && npm run test-unit",
"lint": "eslint .",
"test-unit": "jest",
"run-prettier": "prettier . .eslintrc",
"check-prettier": "npm run run-prettier -- --check",
"compile-typescript": "tsc --project ."
},
"repository": {
Expand All @@ -41,7 +43,7 @@
"jest": "^26.0.1",
"lint-staged": "^10.0.4",
"nock": "^13.0.5",
"prettier": "2.0.5",
"prettier": "2.7.1",
"typescript": "^4.0.2"
},
"dependencies": {
Expand All @@ -62,6 +64,7 @@
"useTabs": true,
"arrowParens": "avoid",
"trailingComma": "all",
"endOfLine": "auto",
"overrides": [
{
"files": "*.md",
Expand Down