NoMagicNumbersCheck implements EslintBasedCheck { @Override public List<Object> configurations() { return Collections.singletonList(new Config()); }  @Override List<Object> configurations(); @Override String eslintKey();  }
@Test public void config() { String configAsString = new Gson().toJson(new NoMagicNumbersCheck().configurations()); assertThat(configAsString).isEqualTo("[{\"ignore\":[0,1,-1]}]"); }