Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
1 answer
4k views

Eslint error "Parsing error: Unexpected token =" Because state is not inside the constructor

Maybe this is a stupid question. But can anyone give me a solution? We can write state outside of constructor, right? Then why eslint is giving me this error? If I make initialize the state inside the ...
Iqbal Hossain Emon's user avatar
0 votes
1 answer
714 views

Eslint rule is running multiple times

I'm trying to write an eslint rule that enforces making sure the name property is defined on any classes that extend from other Error/Exception named classes (and fixes them). As far as I can tell, it ...
robert.bo.roth's user avatar
60 votes
4 answers
64k views

ESLint: Parsing error: This experimental syntax requires enabling one of the following parser plugin(s): 'jsx, flow, typescript' (2:9)

I am trying to use ESLint in WebStrom, but it doesn't work and displays an error: ESLint: Parsing error: This experimental syntax requires enabling one of the following parser plugin(s): 'jsx, flow, ...
skull Kim's user avatar
  • 637