eslint-plugin-wantedly
v4.0.1
Published
Opinionated ESLint plugin for Wantedly
Downloads
11,190
Readme
eslint-plugin-wantedly
Rule details
This plugin provides the opinionated rules in Wantedly.
List of supported rules
wantedly/graphql-operation-name
- Enfoces consistent naming convention for GraphQL Operation Name in
gql
tag
- Enfoces consistent naming convention for GraphQL Operation Name in
wantedly/graphql-pascal-case-type-name
- Check the type name which is PascalCase in
gql
tag
- Check the type name which is PascalCase in
wantedly/nexus-camel-case-field-name
- Check the field name which is camelCase if the code using
nexus
- Check the field name which is camelCase if the code using
wantedly/nexus-pascal-case-type-name
- Check the type name which is PascalCase if the code using
nexus
- Check the type name which is PascalCase if the code using
wantedly/nexus-upper-case-enum-members
- Check the enum members are UPPER_CASE if the code using
nexus
- Check the enum members are UPPER_CASE if the code using
wantedly/nexus-type-description
- Validate that the types have descriptions if the code using
nexus
- Validate that the types have descriptions if the code using
Installation
npm install --save eslint-plugin-wantedly
# or
yarn add eslint-plugin-wantedly
Usage
With "Flat Config"
import pluginWantedly from "eslint-plugin-wantedly";
export default [
{
plugins: {
wantedly: pluginWantedly,
},
rules: {
"wantedly/graphql-pascal-case-type-name": ["error", { autofix: true }],
},
},
];
With "Legacy Config"
{
"plugins": ["wantedly"],
"rules": {
"wantedly/graphql-pascal-case-type-name": ["error", { "autofix": true }]
}
}