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
When linting .jsx files I have the following error: This experimental syntax requires enabling one of the following parser plugin(s): ‘jsx, flow, typescript’
If I install "@babel/preset-react" with npm and add the following property to "parserOptions", the error goes away and .jsx files are then linted normally:
However, I'm not sure this is the intended way to use the "canonical/react" config since there's no mention of it in the docs...
If @babel/preset-react is required, shouldn't it already come inside the canonical/react config?
If it's not required, could someone kindly provide a working example using "canonical/react" with ".jsx" instead of ".tsx"?
The text was updated successfully, but these errors were encountered:
When linting .jsx files I have the following error:
This experimental syntax requires enabling one of the following parser plugin(s): ‘jsx, flow, typescript’
My .eslintrc.json config file is as follows:
If I install "@babel/preset-react" with npm and add the following property to "parserOptions", the error goes away and
.jsx
files are then linted normally:However, I'm not sure this is the intended way to use the "canonical/react" config since there's no mention of it in the docs...
If
@babel/preset-react
is required, shouldn't it already come inside thecanonical/react
config?If it's not required, could someone kindly provide a working example using "canonical/react" with ".jsx" instead of ".tsx"?
The text was updated successfully, but these errors were encountered: