Skip to content

Commit

Permalink
chore: update prettier (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Aug 23, 2022
1 parent d1673f2 commit c1fb4d9
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
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

0 comments on commit c1fb4d9

Please sign in to comment.