diff --git a/.babelrc b/.babelrc index b6ef8a8..9ca9794 100644 --- a/.babelrc +++ b/.babelrc @@ -3,9 +3,7 @@ [ "@babel/preset-env", { - "exclude": [ - "transform-typeof-symbol" - ] + "exclude": ["transform-typeof-symbol"] } ] ] diff --git a/benchmark.js b/benchmark.js index e132b1c..47b197f 100644 --- a/benchmark.js +++ b/benchmark.js @@ -24,34 +24,34 @@ var transform = require("./dist/index").transform; console.log("-----------------------------------------"); once - .add("1 call", function() { + .add("1 call", function () { transform(styles, dimensions); }) - .on("cycle", function(event) { + .on("cycle", function (event) { console.log(String(event.target)); }) - .on("complete", function() { + .on("complete", function () { console.log("-----------------------------------------"); }) .run({ async: false }); fourTimes - .add("4 calls", function() { + .add("4 calls", function () { transform(styles, dimensions); transform(styles, dimensions); transform(styles, dimensions); transform(styles, dimensions); }) - .on("cycle", function(event) { + .on("cycle", function (event) { console.log(String(event.target)); }) - .on("complete", function() { + .on("complete", function () { console.log("-----------------------------------------"); }) .run({ async: false }); eightTimesTheSame - .add("8 calls", function() { + .add("8 calls", function () { transform(styles, dimensions); transform(styles, dimensions); transform(styles, dimensions); @@ -61,10 +61,10 @@ eightTimesTheSame transform(styles, dimensions); transform(styles, dimensions); }) - .on("cycle", function(event) { + .on("cycle", function (event) { console.log(String(event.target)); }) - .on("complete", function() { + .on("complete", function () { console.log("-----------------------------------------"); }) .run({ async: false });