File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
** TL;DR** The intent of this rule is to identify any blacklisted jQuery methods as deprecated.
4
4
5
- Provides the ability to blacklist a set of jQuery methods for deprecation.
5
+ Provides the ability to blacklist a set of jQuery methods for deprecation.
6
6
The eventual goal being a complete removal of jQuery.
7
7
8
8
# Usage
9
9
10
- Pass an argument array containing the specific blacklisted jQuery methods your consuming application is flagging for.
10
+ Pass an argument array containing the specific blacklisted jQuery methods your consuming application is flagging for.
11
11
12
12
``` js
13
13
const BLACKLIST = [
@@ -21,3 +21,9 @@ rules: {
21
21
' ember-best-practices/no-jquery-methods' : [' error' , BLACKLIST ]
22
22
}
23
23
```
24
+ To help generate this blacklist array, you can run this snippet in the console of your app:
25
+ ``` js
26
+ // In the dev tools console of your app.
27
+ let $methods = [... new Set (Object .keys ($).concat (Object .keys ($ .fn )))];
28
+ copy (` '${ $methods .join (' \' ,\r\n\' ' )} '` )
29
+ ```
You can’t perform that action at this time.
0 commit comments