Parsing error: unknown jsx node:
Unanswered
Ghost ant posted this in #help-forum
Ghost antOP
Hey everyone! I have a problem with eslint configuration. I am using @New Guinea Freshwater Crocodile/mdx and whe i run linter it complains about jsx inside mdx files.
Do you know what can be here is my eslintrc
module.exports = {
rules: {
'import/no-default-export': 'off',
},
overrides: [
{
files: ['.md', '.mdx'],
rules: {
'react/display-name': 'off',
'react/jsx-no-undef': 'off',
},
},
{
files: ['.tsx', '.mdx'],
rules: {
'react/prop-types': 'off',
},
},
{
files: '*.mdx',
rules: {
semi: 0,
},
parser: 'eslint-mdx', // enable eslint-mdx manually if it does not work
extends: 'plugin:mdx/recommended',
},
],
}
It says: Parsing error: unknown jsx node
Do you know what can be here is my eslintrc
module.exports = {
rules: {
'import/no-default-export': 'off',
},
overrides: [
{
files: ['.md', '.mdx'],
rules: {
'react/display-name': 'off',
'react/jsx-no-undef': 'off',
},
},
{
files: ['.tsx', '.mdx'],
rules: {
'react/prop-types': 'off',
},
},
{
files: '*.mdx',
rules: {
semi: 0,
},
parser: 'eslint-mdx', // enable eslint-mdx manually if it does not work
extends: 'plugin:mdx/recommended',
},
],
}
It says: Parsing error: unknown jsx node
1 Reply
Ghost antOP
it seems like problem happens when i wrap normal text inside a jsx component in the mdx