(paths, rules_dir=DEFAULT_ESLINT_RULES_DIR, extra_args=None)
Runs eslint on a list of paths.

  Args:
    paths: A list of paths to run eslint on.
    rules_dir: A directory of custom eslint rules.
    extra_args: A string to append to the end of the eslint command.
Runs eslint on a list of paths.
Runs eslint on a list of paths .
def RunEslint(paths, rules_dir=DEFAULT_ESLINT_RULES_DIR, extra_args=None):
  """Runs eslint on a list of paths.

  Args:
    paths: A list of paths to run eslint on.
    rules_dir: A directory of custom eslint rules.
    extra_args: A string to append to the end of the eslint command.
  """
  if type(paths) is not list or len(paths) == 0:
    raise ValueError('Must specify a non-empty list of paths to lint.')

  try:
    eslint_cmd = _CreateEslintCommand(rules_dir, extra_args)
    return True, subprocess.check_output(eslint_cmd + paths,
                                         stderr=subprocess.STDOUT).rstrip()
  except subprocess.CalledProcessError as e:
    return False, e.output.rstrip()
def RunEslint ( paths , rules_dir = DEFAULT_ESLINT_RULES_DIR , extra_args = None ) : if type ( paths ) is not list or len ( paths ) == 0 : raise ValueError ( 'Must specify a non-empty list of paths to lint.' ) try : eslint_cmd = _CreateEslintCommand ( rules_dir , extra_args ) return True , subprocess . check_output ( eslint_cmd + paths , stderr = subprocess . STDOUT ) . rstrip ( ) except subprocess . CalledProcessError as e : return False , e . output . rstrip ( )