Following, babeljs.io recommendation I forked @babel/parser and created my own to add some custom syntax. My source files are building and compiling fine after setting things up with a .babelrc.js file looking like:
However, babel-eslint seems to be completely ignoring the plugin option and keeps using the original @babel/parser instance. I know that for a fact because if a remove node_modules/@babel/parser and symlink that to my fork, it starts linting correctly, recognising new syntax and clearing all errors.
I also tried setting the parserOverride option directly inside parserOptions.babel to no avail.
Am I missing something? Is there any way to make this work? Thanks in advance!
Following,
babeljs.io
recommendation I forked@babel/parser
and created my own to add some custom syntax. My source files are building and compiling fine after setting things up with a.babelrc.js
file looking like:However,
babel-eslint
seems to be completely ignoring the plugin option and keeps using the original@babel/parser
instance. I know that for a fact because if a removenode_modules/@babel/parser
and symlink that to my fork, it starts linting correctly, recognising new syntax and clearing all errors.I also tried setting the
parserOverride
option directly insideparserOptions.babel
to no avail.Am I missing something? Is there any way to make this work? Thanks in advance!