Linter for C sharp

Can’t find how to modify the js linter to fit another language. How would I do that? (I want a linter for C sharp )

You can’t. Linters for different languages will generally be very different pieces of software. If you find a C# linter written in JavaScript (which may not exist), you can write a wrapper for it to integrate it with the lint addon for CodeMirror.