Does sonarqube and sonarlint use same rule sets? And how to know which version of rule sets are they

Thanks for the additional context!

In this case, you can create the project on SonarQube and already synchronize it with SonarLint even before the first analysis.

Since there will be no analysis, you won’t benefit from the issue synchronization, however you should still have the synchronization of the rule set which will help you clean the project before the first analysis.

Good luck with the cleanup!