Categories
Uncategorized

Allow arrow functions as properties in React Components using eslint

If you don’t configure your .eslintrc file, then you might see this “Parsing error: Unexpected token =” when you do the following in your react components.

To use arrow functions as properties in React components you can do the following.

Install

Install the required dev dependencies for the eslint plugin and airbnb’s configuration

Configure

.eslintrc

Over riding the rules

.eslintrc