standard/eslint-config-standard-react

error using Class Properties with React

loconluis opened this issue ยท 1 comments

state = {
    collapse: false
}

The error occurs, when I put the state like show above using class properties, says that the equal sign (=) is an unexpected token. ๐Ÿ™

captura de pantalla 2018-03-17 a la s 15 42 45

You need to install babel-eslint and set it as your parser. See: https://standardjs.com/#how-do-i-use-experimental-javascript-es-next-features