It looks like there are a few things going on.
- Without a tsconfig.json file, all files are being skipped.
INFO: Found 0 tsconfig.json file(s): []
INFO: No tsconfig.json file found
INFO: 39 source files to be analyzed
INFO: Skipped 39 file(s) because they were not part of any tsconfig (enable debug logs to see the full list)
INFO: 39/39 source files have been analyzed
INFO: Sensor TypeScript analysis [javascript] (done) | time=213ms
With a tsconfig.json file (by renaming deno.json to tsconfig.json, take note that setting sonar.typescript.tsconfigPath=deno.json
is having no effect in a .sonarcloud.properties file), you’ll run into another issue.
ERROR: Error: Argument for '--lib' option must be: 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'es2021', 'es2022', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'webworker.iterable', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asyncgenerator', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.object', 'es2019.string', 'es2019.symbol', 'es2020.bigint', 'es2020.promise', 'es2020.sharedmemory', 'es2020.string', 'es2020.symbol.wellknown', 'es2020.intl', 'es2021.promise', 'es2021.string', 'es2021.weakref', 'es2021.intl', 'es2022.array', 'es2022.error', 'es2022.object', 'es2022.string', 'esnext.array', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.bigint', 'esnext.string', 'esnext.promise', 'esnext.weakref'.
Without Deno (something I learned about the existence of… 20 minutes ago
) support in the Typescript compiler, you’re gonna have to try and workaround this.
Just for kicks, I created a tsconfig.json file using es2022
instead of deno.window
and… it seemed to work.