Skip to content

Commit

Permalink
Remove underline from Babel configuration validation errors
Browse files Browse the repository at this point in the history
This prevents us from processing the configuration in the ESLint helper, since the helper does not configure Chalk.
  • Loading branch information
novemberborn committed May 28, 2019
1 parent 928ed14 commit c10e38c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/babel-pipeline.js
Expand Up @@ -12,7 +12,6 @@ const pkgConf = require('pkg-conf');
const stripBomBuf = require('strip-bom-buf');
const writeFileAtomic = require('write-file-atomic');
const pkg = require('../package.json');
const chalk = require('./chalk').get();

function getSourceMap(filePath, code) {
let sourceMap = convertSourceMap.fromSource(code);
Expand Down Expand Up @@ -50,7 +49,7 @@ function validate(conf) {
(conf.testOptions !== undefined && !isPlainObject(conf.testOptions)) ||
(conf.extensions !== undefined && !isValidExtensions(conf.extensions))
) {
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.`);
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.`);
}

return {
Expand Down

0 comments on commit c10e38c

Please sign in to comment.