File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,9 @@ export default [
13
13
...pluginVue . configs [ 'flat/recommended' ] ,
14
14
{
15
15
files : [ '**/*.vue' ] ,
16
- // `eslint-plugin-vue` will set a default processor for `.vue` files
17
- // we use `eslint-merge-processors` to extend it
16
+ // Vue still needs to be parsed by the Vue parser for normal linting. But GraphQL's lint needs to lint only the JS/TS part,
17
+ // so extract those as blocks using eslint-processor-vue-blocks. This turns the script parts of Vue SFCs into virtual JS/TS
18
+ // blocks inside ESLint. ESLint can then parse the JS/TS to find GraphQL parts. And finally, graphql-eslint can lint the resulting GraphQL
18
19
processor : mergeProcessors ( [
19
20
pluginVue . processors . vue ,
20
21
processorVueBlocks ( {
You can’t perform that action at this time.
0 commit comments