-
So whats the correct setup for dealing with decorators. I'm using legacy decorators. Before I had added:
Checking the If I remove the plugin, the latest version of eslint still errors saying I need to enable the decorator-legacy plugin:
But that plugin is deprecated! So what's the correct way to get eslint to not complain about decorators? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @jrj2211, this is coming from |
Beta Was this translation helpful? Give feedback.
-
Just incase anyone else comes across this, the solution was to use the babel decorator plugin and pass in the plugins under parserOptions.babelOptions:
This optionally could also be done in a separate babelrc config, or in your package.json. I opted to put it in my |
Beta Was this translation helpful? Give feedback.
Hi @jrj2211, this is coming from
@babel/eslint-parser
which is a parser not maintained by the ESLint team. Please consult the maintainers there.