Skip to content

Commit c10e38c

Browse files
committed
Remove underline from Babel configuration validation errors
This prevents us from processing the configuration in the ESLint helper, since the helper does not configure Chalk.
1 parent 928ed14 commit c10e38c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/babel-pipeline.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const pkgConf = require('pkg-conf');
1212
const stripBomBuf = require('strip-bom-buf');
1313
const writeFileAtomic = require('write-file-atomic');
1414
const pkg = require('../package.json');
15-
const chalk = require('./chalk').get();
1615

1716
function getSourceMap(filePath, code) {
1817
let sourceMap = convertSourceMap.fromSource(code);
@@ -50,7 +49,7 @@ function validate(conf) {
5049
(conf.testOptions !== undefined && !isPlainObject(conf.testOptions)) ||
5150
(conf.extensions !== undefined && !isValidExtensions(conf.extensions))
5251
) {
53-
throw new Error(`Unexpected Babel configuration for AVA. See ${chalk.underline(`https://github.com/avajs/ava/blob/v${pkg.version}/docs/recipes/babel.md`)} for allowed values.`);
52+
throw new Error(`Unexpected Babel configuration for AVA. See https://github.com/avajs/ava/blob/v${pkg.version}/docs/recipes/babel.md for allowed values.`);
5453
}
5554

5655
return {

0 commit comments

Comments
 (0)