Refine lint-staged configuration
[benchmarks-js.git] / promise-handling.js
index 182ba772bef44b6c60ced6f74e6e1d79a15920ec..bed3ac4f64a8de4a8042d7dd54c7e4d92fd3acef 100644 (file)
@@ -3,10 +3,16 @@ const { LIST_FORMATTER } = require('./benchmark-utils')
 
 const suite = new Benchmark.Suite()
 
+/**
+ *
+ */
 function promise () {
   return new Promise()
 }
 
+/**
+ *
+ */
 async function asyncFunction () {
   await promise()
 }
@@ -25,7 +31,7 @@ suite
     console.log(
       'Fastest is ' + LIST_FORMATTER.format(this.filter('fastest').map('name'))
     )
-    // eslint-disable-next-line no-process-exit
+    // eslint-disable-next-line n/no-process-exit
     process.exit()
   })
   .run()