lib/cli.js
function translateOptions(cliOptions) {
    return {
        envs: cliOptions.env,
        extensions: cliOptions.ext,
        rules: cliOptions.rule,
        plugins: cliOptions.plugin,
        globals: cliOptions.global,
        ignore: cliOptions.ignore,
        ignorePath: cliOptions.ignorePath,
        ignorePattern: cliOptions.ignorePattern,
        configFile: cliOptions.config,
        rulePaths: cliOptions.rulesdir,
        useEslintrc: cliOptions.eslintrc,
        parser: cliOptions.parser,
        parserOptions: cliOptions.parserOptions,
        cache: cliOptions.cache,
        cacheFile: cliOptions.cacheFile,
        cacheLocation: cliOptions.cacheLocation,
        fix: (cliOptions.fix || cliOptions.fixDryRun) && (cliOptions.quiet ? quietFixPredicate : true),
        fixTypes: cliOptions.fixType,
        allowInlineConfig: cliOptions.inlineConfig,
        reportUnusedDisableDirectives: cliOptions.reportUnusedDisableDirectives
    };
}
function translateOptions(cliOptions) {
    return {
        envs: cliOptions.env,
        extensions: cliOptions.ext,
        rules: cliOptions.rule,
        plugins: cliOptions.plugin,
        globals: cliOptions.global,
        ignore: cliOptions.ignore,
        ignorePath: cliOptions.ignorePath,
        ignorePattern: cliOptions.ignorePattern,
        configFile: cliOptions.config,
        rulePaths: cliOptions.rulesdir,
        useEslintrc: cliOptions.eslintrc,
        parser: cliOptions.parser,
        parserOptions: cliOptions.parserOptions,
        cache: cliOptions.cache,
        cacheFile: cliOptions.cacheFile,
        cacheLocation: cliOptions.cacheLocation,
        fix: (cliOptions.fix || cliOptions.fixDryRun) && (cliOptions.quiet ? quietFixPredicate : true),
        fixTypes: cliOptions.fixType,
        allowInlineConfig: cliOptions.inlineConfig,
        reportUnusedDisableDirectives: cliOptions.reportUnusedDisableDirectives
    };
}
function translateOptions ( cliOptions ) { return { envs : cliOptions . env , extensions : cliOptions . ext , rules : cliOptions . rule , plugins : cliOptions . plugin , globals : cliOptions . global , ignore : cliOptions . ignore , ignorePath : cliOptions . ignorePath , ignorePattern : cliOptions . ignorePattern , configFile : cliOptions . config , rulePaths : cliOptions . rulesdir , useEslintrc : cliOptions . eslintrc , parser : cliOptions . parser , parserOptions : cliOptions . parserOptions , cache : cliOptions . cache , cacheFile : cliOptions . cacheFile , cacheLocation : cliOptions . cacheLocation , fix : ( cliOptions . fix || cliOptions . fixDryRun ) && ( cliOptions . quiet ? quietFixPredicate : true ) , fixTypes : cliOptions . fixType , allowInlineConfig : cliOptions . inlineConfig , reportUnusedDisableDirectives : cliOptions . reportUnusedDisableDirectives } ; }
Translates the CLI options into the options expected by the CLIEngine.
@param {Object} cliOptions The CLI options to translate.
@returns {CLIEngineOptions} The options object for the CLIEngine.
@private
Translates the CLI options into the options expected by the CLIEngine .