You might want to check out XO, which includes this plugin. Most rules target JavaScript and TypeScript, but some also lint CSS, HTML, JSON, and Markdown when used ...
Ajax method parameter is a JS object, the object contains type, url, dataType three string parameters, data parameter is an object, success and error is JS callback ...