W3C HTML validation for React JSX files

前端 未结 2 1621
北荒
北荒 2020-12-15 22:42

When working on front-end projects I always like to work with linting tools. They prevent from dumb mistakes to serious smelly code pieces. Linting tools also suggest improv

2条回答
  •  失恋的感觉
    2020-12-15 23:13

    There are no W3C HTML validators for JSX. JSX is JS, not HTML. So you can use eslint plugins for linting jsx to avoid common problems:

    • https://github.com/yannickcr/eslint-plugin-react
    • https://github.com/evcohen/eslint-plugin-jsx-a11y

提交回复
热议问题