Sonar has no rule for JavaScript or TypeScript regarding indentation.
You can use another tool, such as prettier, for that purpose.