INNER CODE UNIT · JavaScript
ruleNames
cjoudrey/graphql-schema-linter · src/configuration.js:149
const ruleNames = rules.map((rule) => rule.name);
let misConfiguredRuleNames = []
.concat(
this.options.only || [],
this.options.except || [],
this.options.rules || []
)
.map(toUpperCamelCase)
.filter((name) => ruleNames.indexOf(name) == -1);
if (this.getFormatter() == null) {
issues.push({
message: `The output format '${this.options.format}' is invalid`,
field: 'format',
type: 'error',
});
}