Skip to content

Commit dce14c6

Browse files
authored
Update dependencies
* Ensure mem is a regular dependency, and update it * Upgrade XO * Update dev dependencies
1 parent fc93098 commit dce14c6

12 files changed

+123
-108
lines changed

lib/cli.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ exports.run = async () => { // eslint-disable-line complexity
106106
'strip-aliased': true,
107107
'unknown-options-as-args': false
108108
})
109-
.usage('$0 [<pattern>...]') // eslint-disable-line unicorn/string-content
110-
.usage('$0 debug [<pattern>...]') // eslint-disable-line unicorn/string-content
109+
.usage('$0 [<pattern>...]')
110+
.usage('$0 debug [<pattern>...]')
111111
.usage('$0 reset-cache')
112112
.options({
113113
color: {
@@ -118,13 +118,13 @@ exports.run = async () => { // eslint-disable-line complexity
118118
description: 'Specific JavaScript file for AVA to read its config from, instead of using package.json or ava.config.* files'
119119
}
120120
})
121-
.command('* [<pattern>...]', 'Run tests', yargs => yargs.options(FLAGS).positional('pattern', { // eslint-disable-line unicorn/string-content
121+
.command('* [<pattern>...]', 'Run tests', yargs => yargs.options(FLAGS).positional('pattern', {
122122
array: true,
123123
describe: 'Glob patterns to select what test files to run. Leave empty if you want AVA to run all test files instead',
124124
type: 'string'
125125
}))
126126
.command(
127-
'debug [<pattern>...]', // eslint-disable-line unicorn/string-content
127+
'debug [<pattern>...]',
128128
'Activate Node.js inspector and run a single test file',
129129
yargs => yargs.options(FLAGS).options({
130130
break: {

lib/concordance-options.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const colorTheme = {
8888
string: {
8989
open: ansiStyles.blue.open,
9090
close: ansiStyles.blue.close,
91-
line: {open: forceColor.blue('\''), close: forceColor.blue('\'')}, // eslint-disable-line unicorn/string-content
91+
line: {open: forceColor.blue('\''), close: forceColor.blue('\'')},
9292
multiline: {start: forceColor.blue('`'), end: forceColor.blue('`')},
9393
controlPicture: ansiStyles.grey,
9494
diff: {

lib/load-config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const EXPERIMENTS = new Set();
1212
// *Very* rudimentary support for loading ava.config.js files containing an `export default` statement.
1313
const evaluateJsConfig = configFile => {
1414
const contents = fs.readFileSync(configFile, 'utf8');
15-
const script = new vm.Script(`'use strict';(()=>{let __export__;\n${contents.replace(/export default/g, '__export__ =')};return __export__;})()`, { // eslint-disable-line unicorn/string-content
15+
const script = new vm.Script(`'use strict';(()=>{let __export__;\n${contents.replace(/export default/g, '__export__ =')};return __export__;})()`, {
1616
filename: configFile,
1717
lineOffset: -1
1818
});

0 commit comments

Comments
 (0)