Open edg2s opened 4 years ago
That would be great.
removeAttr
should be added to the no-attr
rule, c.f. no-data
.
Same for removeProp
And $.hasData()
should be added to no-data
(as well as the lower-level _data
and _removeData
)
$.Tween()
, $.Animation()
and $.fx()
are related to animations IIRC, so they might belong to no-animate
.
and $.ajax*
belong to no-ajax
We may want to group some of these rules, like no-class
Group with individual rules available if people want them, and most-specific-wins?
See #163 for grouping. I think individual rules should be created when there is a use case/request.
Related: #170, #268
A good place to start for utilities and collection methods is:
Object.keys($.fn).filter(k=>typeof $.fn[k] === 'function').sort()
andObject.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()