diff --git a/benchmark/index.js b/benchmark/index.js index 137fb5a..8ce98a5 100644 --- a/benchmark/index.js +++ b/benchmark/index.js @@ -1,11 +1,11 @@ +"use strict"; + /* eslint-env browser, jquery */ let benchmarks = require("./benchmarks.js"); let Runner = require("./runner.js"); $("#run").click(() => { - "use strict"; - // Results Table Manipulation let resultsTable = $("#results-table"); @@ -134,7 +134,5 @@ $("#run").click(() => { }); $(document).ready(() => { - "use strict"; - $("#run").focus(); }); diff --git a/benchmark/run b/benchmark/run index 90ebc6f..7f3a2e6 100755 --- a/benchmark/run +++ b/benchmark/run @@ -1,10 +1,10 @@ #!/usr/bin/env node +"use strict"; + /* eslint-env node */ /* eslint no-console: 0*/ -"use strict"; - let fs = require("fs"); let benchmarks = require("./benchmarks.js"); diff --git a/benchmark/runner.js b/benchmark/runner.js index 3ca9948..af4a8de 100644 --- a/benchmark/runner.js +++ b/benchmark/runner.js @@ -1,7 +1,7 @@ -/* global setTimeout */ - "use strict"; +/* global setTimeout */ + let peg = require("../lib/peg"); let Runner = { diff --git a/benchmark/server b/benchmark/server index b5bbf0b..236801d 100755 --- a/benchmark/server +++ b/benchmark/server @@ -1,10 +1,10 @@ #!/usr/bin/env node +"use strict"; + /* eslint-env node */ /* eslint no-console: 0 */ -"use strict"; - // Small server whose main purpose is to ensure that both the benchmarked code // and the benchmark get passed through Babel & Browserify before they are // served to the browser. diff --git a/spec/api/generated-parser-api.spec.js b/spec/api/generated-parser-api.spec.js index 8d96917..7d0f5d4 100644 --- a/spec/api/generated-parser-api.spec.js +++ b/spec/api/generated-parser-api.spec.js @@ -1,8 +1,8 @@ +"use strict"; + /* eslint no-console: 0 */ /* global console */ -"use strict"; - let peg = require("../../lib/peg"); describe("generated parser API", function() { diff --git a/spec/behavior/generated-parser-behavior.spec.js b/spec/behavior/generated-parser-behavior.spec.js index 8da9b64..6e86c42 100644 --- a/spec/behavior/generated-parser-behavior.spec.js +++ b/spec/behavior/generated-parser-behavior.spec.js @@ -1,8 +1,8 @@ +"use strict"; + /* eslint no-console: 0 */ /* global console */ -"use strict"; - let peg = require("../../lib/peg"); describe("generated parser behavior", function() { diff --git a/spec/server b/spec/server index ab3469d..619d4d8 100755 --- a/spec/server +++ b/spec/server @@ -1,10 +1,10 @@ #!/usr/bin/env node +"use strict"; + /* eslint-env node */ /* eslint no-console: 0 */ -"use strict"; - // Small server whose main purpose is to ensure that both the specced code and // the specs get passed through Babel & Browserify before they are served to the // browser.