I need an extension for checking, if my javascript has a semicolon on the lineend. By searching the extension i only could find auto set semicolon extension, but i want to check large existing code.
Maybe i can build a custom rule?
As Alexis Mateo mentioned you can use the ESLint Extension for vscode.
If you want to check for semicolons after a statement you do not need to write your own rule.
Instead by setting an option like this in vscode's settings.json:  
{
    "eslint.options": { "configFile": "C:/mydirectory/.eslintrc.json" }
}
you tell the extension where to look for the rule set it should apply.
Now you add the semi rule to your .eslintrc.json like this:  
{
    "rules": {
        "semi": ["error", "always"]
    }
}
Here you can explore further rules.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With