Expected linebreaks to be ‘LF’ but found ‘CRLF’ linebreak-style

Check if you have the linebreak-style rule configure as below either in your .eslintrc or in source code: Since you’re working on Windows, you may want to use this rule instead: Refer to the documentation of linebreak-style: When developing with a lot of people all having different editors, VCS applications and operating systems it may occur that different line endings … Read more

ESLint Parsing error: Unexpected token

Unexpected token errors in ESLint parsing occur due to incompatibility between your development environment and ESLint’s current parsing capabilities with the ongoing changes with JavaScripts ES6~7. Adding the “parserOptions” property to your .eslintrc is no longer enough for particular situations, such as using in ES6 classes as ESLint is currently unable to parse it on … Read more

React eslint error missing in props validation

You need to define propTypes as a static getter if you want it inside the class declaration: If you want to define it as an object, you need to define it outside the class, like this: Also it’s better if you import prop types from prop-types, not react, otherwise you’ll see warnings in console (as preparation for React 16):