Skip to content

Commit 284aa3b

Browse files
committed
chore: Add use strict to all except fixtures
1 parent bcbe1df commit 284aa3b

12 files changed

+24
-0
lines changed

bin/wrap.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
'use strict'
2+
13
require('../lib/wrap')
24
require('spawn-wrap').runMain()

build-self-coverage.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const path = require('path')
24
const fs = require('fs')
35
const istanbul = require('istanbul-lib-instrument')

lib/commands/check-coverage.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const NYC = require('../../index.js')
24
const { cliWrapper, setupOptions } = require('./helpers.js')
35

lib/commands/instrument.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const NYC = require('../../index.js')
24
const path = require('path')
35
const { promisify } = require('util')

lib/commands/report.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const NYC = require('../../index.js')
24
const { cliWrapper, setupOptions } = require('./helpers.js')
35

lib/process-args.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const parser = require('yargs-parser')
24
const commands = [
35
'report',

lib/source-maps.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const convertSourceMap = require('convert-source-map')
24
const libCoverage = require('istanbul-lib-coverage')
35
const libSourceMaps = require('istanbul-lib-source-maps')

lib/wrap.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const NYC = require('../index.js')
24

35
const config = JSON.parse(

self-coverage-helper.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
/* global ___NYC_SELF_COVERAGE___ */
24

35
const path = require('path')

test/helpers/parse-argv.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const configUtil = require('../../self-coverage/lib/config-util')
24

35
async function parseArgv (cwd, argv) {

test/helpers/spawn.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const cp = require('child_process')
24

35
function spawn (exe, args, opts) {

test/should-instrument.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const path = require('path')
24
const NYC = require('../self-coverage')
35

0 commit comments

Comments
 (0)