New JavaScript + TypeScript rules targeting Vue and testing frameworks

Hi JavaScript + TypeScript developers,

The JavaScript and TypeScript analyzer adds sonar-resolve support and detection of generated code. New rules also target testing frameworks and four rules import Vue checks.

New rules targeting Vue:

  • S8950 Vue props with a default value should not be required
  • S8951 Vue component props should not be mutated directly
  • S8961 Vue component events should be explicitly declared
  • S8962 Vue ref and shallowRef calls should be typed

New rules for testing frameworks:

  • S8782: Lifecycle hooks should be declared before test cases
  • S8783: Forced browser interactions should not bypass actionability checks
  • S8784: Assertions should be placed inside test cases or hooks
  • S8785: Test suite callbacks should be synchronous functions

These checks are available for projects now in SonarQube Cloud and from SonarQube Server 2026.4.

We’d love your feedback: which frameworks or patterns should we prioritize next?

2 Likes