Opinionated ESLint plugin for Wantedly
npm install eslint-plugin-wantedlyThis plugin provides the opinionated rules in Wantedly.
- wantedly/graphql-operation-name
- Enfoces consistent naming convention for GraphQL Operation Name in gql tag
- wantedly/graphql-pascal-case-type-name
- Check the type name which is PascalCase in gql tag
- wantedly/nexus-camel-case-field-name
- Check the field name which is camelCase if the code using nexus
- wantedly/nexus-pascal-case-type-name
- Check the type name which is PascalCase if the code using nexus
- wantedly/nexus-upper-case-enum-members
- Check the enum members are UPPER_CASE if the code using nexus
- wantedly/nexus-type-description
- Validate that the types have descriptions if the code using nexus
``sh`
npm install --save eslint-plugin-wantedlyor
yarn add eslint-plugin-wantedly
`js
import pluginWantedly from "eslint-plugin-wantedly";
export default [
{
plugins: {
wantedly: pluginWantedly,
},
rules: {
"wantedly/graphql-pascal-case-type-name": ["error", { autofix: true }],
},
},
];
`
`json``
{
"plugins": ["wantedly"],
"rules": {
"wantedly/graphql-pascal-case-type-name": ["error", { "autofix": true }]
}
}