ricardofbarros / linter-js-standard

Atom linter plugin for JavaScript, using JavaScript Standard Style
https://atom.io/packages/linter-js-standard
MIT License
99 stars 48 forks source link

Using ES6 spread properties in React Components #91

Closed Nurymka closed 7 years ago

Nurymka commented 8 years ago

Using the spread operator when passing propTypes of one component to another causes the linter to give a parsing error. The app still builds, so it should be a bug in the library.

ComponentOne.propTypes = {
  ...ComponentTwo.propTypes
}
screen shot 2016-02-16 at 9 52 26 pm
ricardofbarros commented 7 years ago

I was unable to reproduce. should be fixed by now.