eslint-plugin-graphql icon indicating copy to clipboard operation
eslint-plugin-graphql copied to clipboard

graphql/capitalized-type-name for server types?

Open sarink opened this issue 5 years ago • 0 comments
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?

sarink avatar Mar 26 '20 23:03 sarink