ImplicitDependenciesCheck implements EslintBasedCheck { @Override public List<Object> configurations() { return Arrays.asList(whitelist.split(",")).stream().map(String::trim).collect(Collectors.toList()); }  @Override List<Object> configurations(); @Override String eslintKey(); @RuleProperty(
    key = "whitelist",
    description = "Comma separated list of modules to ignore while checking in package.json.",
    defaultValue = "" + DEFAULT)
  public String whitelist; }
@Test public void configurations() { ImplicitDependenciesCheck check = new ImplicitDependenciesCheck(); String defaultConfigAsString = new Gson().toJson(check.configurations()); assertThat(defaultConfigAsString).isEqualTo("[\"\"]"); check.whitelist = "foo, bar"; String customConfigAsString = new Gson().toJson(check.configurations()); assertThat(customConfigAsString).isEqualTo("[\"foo\",\"bar\"]"); }