duhaime / eslint-plugin-frontmatter

Remove YAML frontmatter from `.js` files before calling ESLint
MIT License
0 stars 3 forks source link

Red squiggly lines are shifted down #14

Open kapitalisman opened 1 year ago

kapitalisman commented 1 year ago

I have been using this plugin in my jekyll project where I need frontmatter in javascript files. Sample code:

image

Now eslint will say 'error' is assigned a value but never used. However, the red squiggly line in vscode appears two lines below where the actual error is.

Solution: maybe instead of removing the dashes/frontmatter, commenting these lines could resolve this