I’m trying to understand status with Typescript linters and I’m confused.
I understood that we’re in the process of migration from tslist to eslint. And I know that Sonar has a few plugins for integrating with eslint/tslint.
But I’m not sure I understand very basic thing - does SonarCloud use its internal linter by default and tslint/eslint reports are optional or whole Sonar report based on tslint/eslint?
In my sonar-scanner output I have this:
2:55:39 INFO: Sensor SonarTS [typescript]
12:55:39 INFO: Since SonarTS v2.0, TypeScript analysis is performed by SonarJS analyzer v6.0 or
later. No TypeScript analysis is performed by SonarTS.
12:55:39 INFO: Sensor SonarTS [typescript] (done) | time=0ms
12:55:39 INFO: Sensor JaCoCo XML Report Importer [jacoco]
12:55:39 INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=9ms
12:55:39 INFO: Sensor JavaScript analysis [javascript]
12:55:41 INFO: Using TypeScript at: '/var/lib/jenkins/workspace/myjob/mycode'
12:55:42 INFO: 15 source files to be analyzed
12:55:43 INFO: 15/15 source files have been analyzed
12:55:43 INFO: Sensor SonarJS [javascript]
12:55:43 INFO: 15 source files to be analyzed
12:55:44 INFO: Sensor SonarJS [javascript] (done) | time=973ms
12:55:44 INFO: 15/15 source files have been analyzed
12:55:44 INFO: Sensor JavaScript analysis [javascript] (done) | time=4953ms
12:55:44 INFO: Sensor SonarJS Coverage [javascript]
12:55:44 INFO: Analysing [/var/lib/jenkins/workspace/myjob/coverage/lcov.info]
12:55:44 INFO: Sensor SonarJS Coverage [javascript] (done) | time=73ms
12:55:44 INFO: Sensor TypeScript analysis [javascript]
12:55:45 INFO: Found 1 tsconfig.json file(s): [/var/lib/jenkins/workspace/myjob/tsconfig.json]
12:55:45 INFO: 237 source files to be analyzed
12:55:45 INFO: Analyzing 237 files using tsconfig: /var/lib/jenkins/workspace/myjob/tsconfig.json
12:56:07 INFO: 237/237 source files have been analyzed