You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
@graphql-eslint/eslint-plugin does not work with frolint cli #926
Internal Error: Error while loading rule '@typescript-eslint/no-floating-promises': You have used a rule which requires parserServices to be generated. You must therefore provide a value for the "parserOptions.project" property for @typescript-eslint/parser.
Occurred while linting /path/to/project/src/path/to/Component.tsx/0_document.graphql
@graphql-eslint also seems to use typescript-eslint internally, so we shouldn't need to disable it all.
It seems to be more an issue with applying our default rules with the graphql-eslint parser.
See this comment in a related issue: https://github.com/dotansimha /graphql-eslint/issues/544#issuecomment-891948697
Nope, it's important that you don't have any rules configured at top level config, and to move all configurations into overrides section. Since JavaScript rules can't run on GraphQL files and vice versa, if you have rules configured at the top level, they will try to also execute for all overrides, as ESLint's configs cascade.
Activity
izumin5210 commentedon Sep 14, 2021
cc @prsdta @tkeiyama
qnighy commentedon Sep 14, 2021
So we may need an option to turn off rules that require type-aware linting?
prsdta commentedon Sep 14, 2021
Indeed, just changing the
rulestoseems to fix the error. But I would like something more future-proof that does not require to disable manually all rules 🤔
prsdta commentedon Sep 14, 2021
@graphql-eslintalso seems to usetypescript-eslintinternally, so we shouldn't need to disable it all.It seems to be more an issue with applying our default rules with the
graphql-eslintparser.See this comment in a related issue: https://github.com/dotansimha /graphql-eslint/issues/544#issuecomment-891948697