Closed phyllisstein closed 6 years ago
Updated to reflect the fact that I can now reproduce the error with both the stable and the dev builds of TypeScript installed.
Thanks @phyllisstein, have you confirmed this does not happen when using espree
(ESLint's default parser)?
Yup, I can verify that this works as expected with espree
and babel-eslint
under eslint@4.13.0
.
@phyllisstein Please could you provide a minimal reproduction of the issue?
Sorry for the delay in getting back to you on this! By the time I got here, though, typescript-eslint-parser@12.0.0
, eslint-plugin-react@7.5.1
, and eslint@4.15.0
were able to parse the line correctly and returned the expected error. 🙌
What version of TypeScript are you using? 2.5.3
What version of
typescript-eslint-parser
are you using? 8.0.1What code were you trying to parse?
What did you expect to happen? The
react/jsx-sort-props
rule should report an error on thelink
tag, and suggesthref
,rel
,type
as the correct order, but linting should otherwise be successful.What happened? An AssertionError was thrown: