Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Description
This issue was initially reported here:eslint/typescript-eslint-parser#502
What version of TypeScript are you using?
2.9.2
What version oftypescript-eslint-parser
are you using?16.0.1
. Here are the other versions:
"eslint-config-airbnb": "17.0.0", "eslint-config-prettier": "2.9.0", "eslint-plugin-babel": "5.1.0", "eslint-plugin-import": "2.13.0", "eslint-plugin-jest": "21.15.0", "eslint-plugin-jsx-a11y": "6.1.1", "eslint-plugin-prettier": "2.6.2", "eslint-plugin-promise": "3.8.0", "eslint-plugin-react": "7.10.0", "eslint-plugin-typescript": "0.12.0",
What code were you trying to parse?
importReact,{Fragment}from'react';importPropTypesfrom'prop-types';import{ChapterShape,VerseShape}from'../../shapes';importVerseContainerfrom'../../containers/VerseContainer';constpropTypes={chapter:ChapterShape.isRequired,isEndOfSurah:PropTypes.bool.isRequired,currentVerse:PropTypes.string,isLoading:PropTypes.bool.isRequired,isSingleVerse:PropTypes.bool.isRequired,verses:PropTypes.objectOf(VerseShape),extra:PropTypes.bool.isRequired,};typeProps={chapter:ChapterShape;verses:{[verseKey:string]:VerseShape};};constListView:React.SFC<Props>=({ chapter, verses}:Props)=>(<Fragment>{Object.values(verses).map((verse:VerseShape)=>(<VerseContainerverse={verse}chapter={chapter}key={`${verse.chapterId}-${verse.id}-verse`}/>))}</Fragment>);ListView.propTypes=propTypes;exportdefaultListView;
What did you expect to happen?
I should get error forextra
as'extra' PropType is defined but prop is never used
. This only works when I don't use typescript-eslint-parser.
What happened?