Stylelint is a modern CSS linter. Here you can create your configuration file.

The best way to use stylelint is to extend stylelint-config-standard, so you can focus on the main options.