ArrowFunctionConventionCheck implements EslintBasedCheck { @Override public List<Object> configurations() { return Collections.singletonList(new Config(parameterParens, bodyBraces)); }  @Override String eslintKey(); @Override List<Object> configurations();  }
@Test public void test_configuration() { ArrowFunctionConventionCheck check = new ArrowFunctionConventionCheck(); String config = new Gson().toJson(check.configurations()); assertThat(config).isEqualTo("[{\"requireParameterParentheses\":false,\"requireBodyBraces\":false}]"); check.parameterParens = true; config = new Gson().toJson(check.configurations()); assertThat(config).isEqualTo("[{\"requireParameterParentheses\":true,\"requireBodyBraces\":false}]"); check.bodyBraces = true; config = new Gson().toJson(check.configurations()); assertThat(config).isEqualTo("[{\"requireParameterParentheses\":true,\"requireBodyBraces\":true}]"); }