Skip to content

Commit

Permalink
chore: Add use strict to all except fixtures (#1197)
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyfarrell authored Oct 7, 2019
1 parent bcbe1df commit cc77e13
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/wrap.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
'use strict'

require('../lib/wrap')
require('spawn-wrap').runMain()
2 changes: 2 additions & 0 deletions build-self-coverage.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const path = require('path')
const fs = require('fs')
const istanbul = require('istanbul-lib-instrument')
Expand Down
2 changes: 2 additions & 0 deletions lib/commands/check-coverage.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const NYC = require('../../index.js')
const { cliWrapper, setupOptions } = require('./helpers.js')

Expand Down
2 changes: 2 additions & 0 deletions lib/commands/instrument.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const NYC = require('../../index.js')
const path = require('path')
const { promisify } = require('util')
Expand Down
2 changes: 2 additions & 0 deletions lib/commands/report.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const NYC = require('../../index.js')
const { cliWrapper, setupOptions } = require('./helpers.js')

Expand Down
2 changes: 2 additions & 0 deletions lib/process-args.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const parser = require('yargs-parser')
const commands = [
'report',
Expand Down
2 changes: 2 additions & 0 deletions lib/source-maps.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const convertSourceMap = require('convert-source-map')
const libCoverage = require('istanbul-lib-coverage')
const libSourceMaps = require('istanbul-lib-source-maps')
Expand Down
2 changes: 2 additions & 0 deletions lib/wrap.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const NYC = require('../index.js')

const config = JSON.parse(
Expand Down
2 changes: 2 additions & 0 deletions self-coverage-helper.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

/* global ___NYC_SELF_COVERAGE___ */

const path = require('path')
Expand Down
2 changes: 2 additions & 0 deletions test/helpers/parse-argv.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const configUtil = require('../../self-coverage/lib/config-util')

async function parseArgv (cwd, argv) {
Expand Down
2 changes: 2 additions & 0 deletions test/helpers/spawn.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const cp = require('child_process')

function spawn (exe, args, opts) {
Expand Down
2 changes: 2 additions & 0 deletions test/should-instrument.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const path = require('path')
const NYC = require('../self-coverage')

Expand Down

0 comments on commit cc77e13

Please sign in to comment.