Open DanielEscorciaOrtiz opened 1 year ago
this is tricky to fix because allowLeadingUnderscore
and allowLeadingUnderscore
are global options that match Name
nodes https://github.com/B2o5T/graphql-eslint/blob/819c046c2a459d2e601a7c58823b3fc4862ece0e/packages/plugin/src/rules/naming-convention.ts#L426-L435
Issue workflow progress
Progress of the issue based on the Contributor Workflow
[ ] 1. The issue provides a reproduction available on GitHub, Stackblitz or CodeSandbox
[ ] 2. A failing test has been provided
[ ] 3. A local solution has been provided
[ ] 4. A pull request is pending review
Describe the bug
To Reproduce
With a schema like this:
And a
.eslintrc
like this:I'm still receiving this errors:
Expected behavior
It should ignore underscores if it matches the pattern, as described in the docs
Environment:
macOs Ventura 13.4.1
@graphql-eslint/eslint-plugin
:3.19.1
v18.16.0
Additional context