@graphql-eslint/eslint-plugin
Version:
GraphQL plugin for ESLint
37 lines (34 loc) • 1.61 kB
JavaScript
Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _operationsalljs = require('./operations-all.js'); var _operationsalljs2 = _interopRequireDefault(_operationsalljs);
var _operationsrecommendedjs = require('./operations-recommended.js'); var _operationsrecommendedjs2 = _interopRequireDefault(_operationsrecommendedjs);
var _schemaalljs = require('./schema-all.js'); var _schemaalljs2 = _interopRequireDefault(_schemaalljs);
var _schemarecommendedjs = require('./schema-recommended.js'); var _schemarecommendedjs2 = _interopRequireDefault(_schemarecommendedjs);
var _schemarelayjs = require('./schema-relay.js'); var _schemarelayjs2 = _interopRequireDefault(_schemarelayjs);
const configs = {
"schema-recommended": _schemarecommendedjs2.default,
"schema-all": _schemaalljs2.default,
"schema-relay": _schemarelayjs2.default,
"operations-recommended": _operationsrecommendedjs2.default,
"operations-all": _operationsalljs2.default,
"flat/schema-recommended": {
rules: _schemarecommendedjs2.default.rules
},
"flat/schema-all": {
rules: {
..._schemarecommendedjs2.default.rules,
..._schemaalljs2.default.rules
}
},
"flat/schema-relay": {
rules: _schemarelayjs2.default.rules
},
"flat/operations-recommended": {
rules: _operationsrecommendedjs2.default.rules
},
"flat/operations-all": {
rules: {
..._operationsrecommendedjs2.default.rules,
..._operationsalljs2.default.rules
}
}
};
exports.configs = configs;
;