@graphql-eslint/eslint-plugin
Version:
GraphQL plugin for ESLint
37 lines (36 loc) • 1 kB
JavaScript
import operationsAllConfig from "./operations-all.js";
import operationsRecommendedConfig from "./operations-recommended.js";
import schemaAllConfig from "./schema-all.js";
import schemaRecommendedConfig from "./schema-recommended.js";
import relayConfig from "./schema-relay.js";
const configs = {
"schema-recommended": schemaRecommendedConfig,
"schema-all": schemaAllConfig,
"schema-relay": relayConfig,
"operations-recommended": operationsRecommendedConfig,
"operations-all": operationsAllConfig,
"flat/schema-recommended": {
rules: schemaRecommendedConfig.rules
},
"flat/schema-all": {
rules: {
...schemaRecommendedConfig.rules,
...schemaAllConfig.rules
}
},
"flat/schema-relay": {
rules: relayConfig.rules
},
"flat/operations-recommended": {
rules: operationsRecommendedConfig.rules
},
"flat/operations-all": {
rules: {
...operationsRecommendedConfig.rules,
...operationsAllConfig.rules
}
}
};
export {
configs
};