Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This issue was initially reported here: eslint/typescript-eslint-parser#594
What version of TypeScript are you using? 3.1.1
What version of typescript-eslint-parser are you using? 21.0.2
typescript-eslint-parser
What code were you trying to parse?
const RuleTester = require("eslint").RuleTester; const ruleTester = new RuleTester({ parserOptions: { ecmaVersion: 6, sourceType: "module", ecmaFeatures: { jsx: true, }, }, parser: "typescript-eslint-parser", }); ruleTester.run("no-unused-vars", rule, { valid: [ ` const Foo = function () {} function render() { return (<Foo />); } `, ], invalid: [], })
What did you expect to happen? The code should parse successfully, so I can test the rule.
What happened? Parsing error: \'>\' expected.
Parsing error: \'>\' expected.
see astexplorer repl Note the parser has the jsx option set to true
jsx
The text was updated successfully, but these errors were encountered:
Fix: type-annotation-spacing rule doesn't work for class properties (f…
06cc525
…ixes #24) (#36)
0a9efba
41dfa1f
TODO - migrate PR eslint/typescript-eslint-parser#595
Sorry, something went wrong.
bradzacher
Successfully merging a pull request may close this issue.
This issue was initially reported here: eslint/typescript-eslint-parser#594
What version of TypeScript are you using?
3.1.1
What version of
typescript-eslint-parser
are you using?21.0.2
What code were you trying to parse?
What did you expect to happen?
The code should parse successfully, so I can test the rule.
What happened?
Parsing error: \'>\' expected.
see astexplorer repl
Note the parser has the
jsx
option set to trueThe text was updated successfully, but these errors were encountered: