Use markuplint with React. Add React specific elements and attributes to the schema.
$ npm install -D @markuplint/react-spec
$ yarn add -D @markuplint/react-spec
Add specs
option to your configuration.
{
"specs": {
".[jt]sx?$": "@markuplint/react-spec"
}
}