File tree Expand file tree Collapse file tree 2 files changed +18
-86
lines changed
Expand file tree Collapse file tree 2 files changed +18
-86
lines changed Original file line number Diff line number Diff line change 1- const BLACKLIST = [
2- 'add' ,
3- 'addBack' ,
4- 'after' ,
5- 'ajaxComplete' ,
6- 'ajaxError' ,
7- 'ajaxSend' ,
8- 'ajaxStart' ,
9- 'ajaxStop' ,
10- 'ajaxSuccess' ,
11- 'andSelf' ,
12- 'before' ,
13- 'bind' ,
14- 'change' ,
15- 'clearQueue' ,
16- 'clone' ,
17- 'contents' ,
18- 'contextmenu' ,
19- 'dblclick' ,
20- 'delay' ,
21- 'delegate' ,
22- 'dequeue' ,
23- 'detach' ,
24- 'end' ,
25- 'error' ,
26- 'fadeIn' ,
27- 'fadeTo' ,
28- 'fadeToggle' ,
29- 'finish' ,
30- 'focusin' ,
31- 'focusout' ,
32- 'hover' ,
33- 'insertAfter' ,
34- 'insertBefore' ,
35- 'keydown' ,
36- 'keypress' ,
37- 'keyup' ,
38- 'last' ,
39- 'load' ,
40- 'mousedown' ,
41- 'mouseenter' ,
42- 'mouseleave' ,
43- 'mousemove' ,
44- 'mouseout' ,
45- 'mouseover' ,
46- 'mouseup' ,
47- 'next' ,
48- 'nextAll' ,
49- 'nextUntil' ,
50- 'not' ,
51- 'parentsUntil' ,
52- 'prepend' ,
53- 'prependTo' ,
54- 'prev' ,
55- 'revUntil' ,
56- 'promise' ,
57- 'queue' ,
58- 'removeData' ,
59- 'removeProp' ,
60- 'replaceAll' ,
61- 'replaceWith' ,
62- 'resize' ,
63- 'scroll' ,
64- 'scrollLeft' ,
65- 'select' ,
66- 'serialize' ,
67- 'show' ,
68- 'size' ,
69- 'slice' ,
70- 'slideDown' ,
71- 'slideToggle' ,
72- 'stop' ,
73- 'submit' ,
74- 'toArray' ,
75- 'toggle' ,
76- 'toggleClass' ,
77- 'unbind' ,
78- 'undelegate' ,
79- 'unload' ,
80- 'unwrap' ,
81- 'wrap' ,
82- 'wrapAll' ,
83- 'wrapInner'
84- ] ;
85-
861module . exports = {
872 parserOptions : {
883 ecmaVersion : 6 ,
@@ -97,6 +12,6 @@ module.exports = {
9712 extends : require . resolve ( './recommended.js' ) ,
9813 rules : {
9914 // Custom rules
100- 'ember-best-practices/no-jquery-methods' : [ 2 , [ BLACKLIST ] ]
15+ 'ember-best-practices/no-jquery-methods' : [ 2 , [ ] ]
10116 }
10217} ;
Original file line number Diff line number Diff line change 44
55Provides the ability to blacklist a set of jQuery methods for deprecation.
66The eventual goal being a complete removal of jQuery.
7+
8+ # Usage
9+
10+ Pass an argument array containing the specific blacklisted jQuery methods your consuming application is flagging for.
11+
12+ ``` js
13+ const BLACKLIST = [
14+ - ' add' ,
15+ - ' addBack' ,
16+ - ' after' ,
17+ - ' ajaxComplete'
18+ ];
19+
20+ rules: {
21+ ' ember-best-practices/no-jquery-methods' : [2 , BLACKLIST ]
22+ }
23+ ```
You can’t perform that action at this time.
0 commit comments