To set up automated code review with Semgrep:
Create
.semgrep.yml
and add some rules (more examples):rules: - id: no_direct_testing_library_import pattern: 'import "@testing-library/react"' message: | Do not directly import React Testing Library. Instead, import it from the `testing-utils` packlet. languages: [ts] severity: ERROR paths: exclude: - src/packlets/testing-utils/**
Run
semgrep
:semgrep