Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upsome options can't be configured with .labrc.js #609
Closed
Comments
This comment has been minimized.
This comment has been minimized.
@feugy, thanks. We will need to move the merge operation to happen earlier in the cli options function and to merge in cli defaults after the file/argv options... as you are suggesting :) |
This comment has been minimized.
This comment has been minimized.
FYI the current way of handling transformers in option file is tricky but really powerfull. const babelTransform = require('lab-babel').find(t => t.ext === 'js').transform
const assertTransform = require('lab-espower-transformer')[0].transform
module.exports = {
coverage: true,
lint: false,
transform: [{
ext: 'js',
// combines both transformations
transform: (content, filename) => assertTransform(babelTransform(content, filename), filename)
}],
// equivalent of verbose
progress: 2
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First of all, thank you for that configuration file !
Right now, some options can't be overridden.
It's because cli settings overrides file options, and because unspecified cli options have default values (like
linter
,lint-errors-threshold
...).Maybe the merge should take cli options (without default), then file options, then defaults ?