eslint-plugin-graphql
eslint-plugin-graphql copied to clipboard
graphql/capitalized-type-name for server types?
trafficstars
// .eslintrc.js
module.exports = {
rules: {
'graphql/capitalized-type-name': [
'warn',
{ schemaJson: require('./src/api-schema.json') },
]
}
};
// typeDefs.js
const gql = require('graphql-tag');
const typeDefs = gql`
type someThing {
foo: String
}
`;
I would've expected this to fail linting :-/ Is there any plan to support linting declared server types as well?