-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Offer a rule for every jQuery feature #112
Comments
That would be great. |
Same for |
And |
and |
We may want to group some of these rules, like
|
Group with individual rules available if people want them, and most-specific-wins? |
* Dynamically build an eslintrc with all rules enabled. * Use a local devDependency, so code is linted against HEAD of eslint-plugin-no-jquery.
See #163 for grouping. I think individual rules should be created when there is a use case/request. |
* Dynamically build an eslintrc with all rules enabled. * Use a eslint-plugin-rulesdir to load latest rules directly.
* Convert indentation to tabs in package.json * Create files that test all methods/utils for tracking #112 * Dynamically build an eslintrc with all rules enabled. * Use a eslint-plugin-rulesdir to load latest rules directly.
A good place to start for utilities and collection methods is:
Object.keys($.fn).filter(k=>typeof $.fn[k] === 'function').sort()
and
Object.keys($).filter(k=>typeof $[k] === 'function').sort()
Update: Here are the methods we don't have rules for:
$x.add()
$x.addBack()
$x.after()
$x.append()
$x.appendTo()
$x.before()
$x.children()
$x.clearQueue()
$x.constructor()
$x.contents()
$x.delay()
$x.dequeue()
$x.detach()
$x.empty()
$x.end()
$x.eq()
$x.extend()
$x.finish()
$x.first()
$x.get()
$x.height()
$x.index()
$x.init()
$x.innerHeight()
$x.innerWidth()
$x.insertAfter()
$x.insertBefore()
$x.last()
$x.next()
$x.nextAll()
$x.nextUntil()
$x.not()
$x.off()
$x.offset()
$x.offsetParent()
$x.on()
$x.one()
$x.outerHeight()
$x.outerWidth()
$x.parentsUntil()
$x.position()
$x.prepend()
$x.prependTo()
$x.prev()
$x.prevAll()
$x.prevUntil()
$x.promise()
$x.pushStack()
$x.queue()
$x.remove()
$x.removeAttr()
$x.removeProp()
$x.replaceAll()
$x.replaceWith()
$x.scrollLeft()
$x.scrollTop()
$x.siblings()
$x.slice()
$x.stop()
$x.toArray()
$x.triggerHandler()
$x.width()
And here are the utilites:
$._data()
$._evalUrl()
$._queueHooks()
$._removeData()
$.ajaxPrefilter()
$.ajaxSetup()
$.ajaxTransport()
$.Animation()
$.Callbacks()
$.cleanData()
$.clone()
$.css()
$.dequeue()
$.error()
$.escapeSelector()
$.Event()
$.fx()
$.hasData()
$.htmlPrefilter()
$.isXMLDoc()
$.makeArray()
$.noConflict()
$.parseXML()
$.queue()
$.ready()
$.readyException()
$.removeAttr()
$.removeEvent()
$.speed()
$.style()
$.Tween()
$.uniqueSort()
The text was updated successfully, but these errors were encountered: