Does SonarQube differentiate JSX from JS?

New to SonarQube here, just generated the first report for a React project. The project are mainly JSX files with some JS files.

From the report, it doesn’t seem that SonarQube differentiate JSX from JS files, or applies different rules to JSX than JS.

Does SonarQube apply different set of rules to JSX than JS? If not, can I import a Linter to generate resports specifically for JSX?

Hello @xiaohan-du,

Welcome to SonarSource community, and thank you for reaching out!

Our JavaScript analyzer does not have a different set of rules for JSX files; it analyses these files with the set of JavaScript rules. However, you can definitely import ESLint issue reports.

Hope this helps,