JavaScript: Using private methods in JavaScript + VSCode + babel-eslint
The problem is that the babel-eslint linter swears at private methods in the classes: Parsing error: This experimental syntax requires enabling the parser plugin: 'classPrivateMethods'
.
I tried to update babel-eslint to 11.0.0-beta.2, and also install the plugins @babel/plugin-proposal-private-methods
and @babel/plugin-proposal-class-properties
, naturally not forgetting to add them in the file .babelrc.json
.
0