Quiero usar SonarLint en Visual Studio para analizar código Javascript. Recibo el siguiente error en la ventana de salida de Visual Studio cuando seleccioné el menú desplegable de SonarLint.
Failed to parse file 'D:\Latest Virtuoso Repo\Accessibility Change\Virtuoso\Source\Virtuoso\Web\Scripts\React_Scripts\Modules\ApprovalDelegation\ApprovalsDelegation\ApprovalsDelegation.jsx' at line 37: PARSING unknown: Support for the experimental syntax 'classProperties' isn't currently enabled (37:21): 35 | } 36 | > 37 | activeApprovals = () => { | ^ 38 | this.setState({ 39 | activeTab: 'Approvals' 40 | }) Add @babel/plugin-proposal-class-properties (https://git.io/vb4SL) to the 'plugins' section of your Babel config to enable transformation. If you want to leave it as-is, add @babel/plugin-syntax-class-properties (https://git.io/vb4yQ) to the 'plugins' section to enable parsing. Aunque tengo la dependencia "@babel/plugin-proposal-class-properties" y estoy incluida en .babelrc , sigo recibiendo un error.
He probado las siguientes opciones,
.babelrc a babel.config.jswebpack.config.base.jspackage.jsonNada parece funcionar. Por favor, hágamelo saber si sabe la solución.