I installed SonarLint for Visual Studio 2022 and found the option to edit rule settings:

This creates file %appdata%\SonarLint for Visual Studio\settings.json with following content:
"sonarlint.rules": { }
How can I suppress a rule here? A sample for Java is given here but it does not work for C# and VS2022.
You can use
.editorconfigto configure/suppress SonarLint rules. For example: