Skip to content

Commit d3c57c8

Browse files
author
nod_
committed
Issue #3474108 by tomomi: Replace eslint-plugin-jquery with eslint-plugin-no-jquery
1 parent f70ec48 commit d3c57c8

File tree

5 files changed

+59
-59
lines changed

5 files changed

+59
-59
lines changed

.eslintrc.jquery.json

+50-50
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,56 @@
11
{
22
"plugins": [
3-
"jquery"
3+
"no-jquery"
44
],
55
"rules": {
6-
"jquery/no-ajax": 0,
7-
"jquery/no-ajax-events": 2,
8-
"jquery/no-animate": 2,
9-
"jquery/no-attr": 0,
10-
"jquery/no-bind": 2,
11-
"jquery/no-class": 0,
12-
"jquery/no-clone": 2,
13-
"jquery/no-closest": 0,
14-
"jquery/no-css": 2,
15-
"jquery/no-data": 0,
16-
"jquery/no-deferred": 0,
17-
"jquery/no-delegate": 2,
18-
"jquery/no-each": 0,
19-
"jquery/no-extend": 0,
20-
"jquery/no-fade": 0,
21-
"jquery/no-filter": 0,
22-
"jquery/no-find": 0,
23-
"jquery/no-global-eval": 2,
24-
"jquery/no-grep": 2,
25-
"jquery/no-has": 0,
26-
"jquery/no-hide": 0,
27-
"jquery/no-html": 0,
28-
"jquery/no-in-array": 0,
29-
"jquery/no-is-array": 0,
30-
"jquery/no-is-function": 2,
31-
"jquery/no-is": 2,
32-
"jquery/no-load": 2,
33-
"jquery/no-map": 2,
34-
"jquery/no-merge": 2,
35-
"jquery/no-param": 2,
36-
"jquery/no-parent": 0,
37-
"jquery/no-parents": 0,
38-
"jquery/no-parse-html": 2,
39-
"jquery/no-prop": 0,
40-
"jquery/no-proxy": 2,
41-
"jquery/no-ready": 2,
42-
"jquery/no-serialize": 2,
43-
"jquery/no-show": 0,
44-
"jquery/no-size": 2,
45-
"jquery/no-sizzle": 0,
46-
"jquery/no-slide": 0,
47-
"jquery/no-submit": 2,
48-
"jquery/no-text": 2,
49-
"jquery/no-toggle": 0,
50-
"jquery/no-trigger": 0,
51-
"jquery/no-trim": 2,
52-
"jquery/no-val": 2,
53-
"jquery/no-when": 2,
54-
"jquery/no-wrap": 0
6+
"no-jquery/no-ajax": 0,
7+
"no-jquery/no-ajax-events": 2,
8+
"no-jquery/no-animate": 2,
9+
"no-jquery/no-attr": 0,
10+
"no-jquery/no-bind": 2,
11+
"no-jquery/no-class": 0,
12+
"no-jquery/no-clone": 2,
13+
"no-jquery/no-closest": 0,
14+
"no-jquery/no-css": 2,
15+
"no-jquery/no-data": 0,
16+
"no-jquery/no-deferred": 0,
17+
"no-jquery/no-delegate": 2,
18+
"no-jquery/no-each": 0,
19+
"no-jquery/no-extend": 0,
20+
"no-jquery/no-fade": 0,
21+
"no-jquery/no-filter": 0,
22+
"no-jquery/no-find": 0,
23+
"no-jquery/no-global-eval": 2,
24+
"no-jquery/no-grep": 2,
25+
"no-jquery/no-has": 0,
26+
"no-jquery/no-hide": 0,
27+
"no-jquery/no-html": 0,
28+
"no-jquery/no-in-array": 0,
29+
"no-jquery/no-is-array": 0,
30+
"no-jquery/no-is-function": 2,
31+
"no-jquery/no-is": 2,
32+
"no-jquery/no-load": 2,
33+
"no-jquery/no-map": 2,
34+
"no-jquery/no-merge": 2,
35+
"no-jquery/no-param": 2,
36+
"no-jquery/no-parent": 0,
37+
"no-jquery/no-parents": 0,
38+
"no-jquery/no-parse-html": 2,
39+
"no-jquery/no-prop": 0,
40+
"no-jquery/no-proxy": 2,
41+
"no-jquery/no-ready": 2,
42+
"no-jquery/no-serialize": 2,
43+
"no-jquery/no-show": 0,
44+
"no-jquery/no-size": 2,
45+
"no-jquery/no-sizzle": 0,
46+
"no-jquery/no-slide": 0,
47+
"no-jquery/no-submit": 2,
48+
"no-jquery/no-text": 2,
49+
"no-jquery/no-toggle": 0,
50+
"no-jquery/no-trigger": 0,
51+
"no-jquery/no-trim": 2,
52+
"no-jquery/no-val": 2,
53+
"no-jquery/no-when": 2,
54+
"no-jquery/no-wrap": 0
5555
}
5656
}

misc/ajax.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1525,7 +1525,7 @@
15251525
* The XMLHttpRequest status.
15261526
*/
15271527
css(ajax, response, status) {
1528-
// eslint-disable-next-line jquery/no-css
1528+
// eslint-disable-next-line no-jquery/no-css
15291529
$(response.selector).css(response.argument);
15301530
},
15311531

modules/system/tests/modules/js_testing_ajax_request_test/js/js_testing_ajax_request_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
window.drupalCumulativeXhrCount = 0;
66
(function ($) {
77
// jQuery.active alone is unable to detect whether an XHR request ever occurred.
8-
/* eslint-disable jquery/no-ajax-events */
8+
/* eslint-disable no-jquery/no-ajax-events */
99
$(document)
1010
.on('ajaxSend', function () {
1111
window.drupalCumulativeXhrCount++;

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"eslint-config-prettier": "^9.1.0",
7070
"eslint-formatter-gitlab": "^5.1.0",
7171
"eslint-plugin-import": "^2.29.1",
72-
"eslint-plugin-jquery": "^1.5.1",
72+
"eslint-plugin-no-jquery": "^3.0.2",
7373
"eslint-plugin-prettier": "^5.2.1",
7474
"eslint-plugin-yml": "^1.14.0",
7575
"glob": "11.0.0",

yarn.lock

+6-6
Original file line numberDiff line numberDiff line change
@@ -2406,7 +2406,7 @@ __metadata:
24062406
eslint-config-prettier: "npm:^9.1.0"
24072407
eslint-formatter-gitlab: "npm:^5.1.0"
24082408
eslint-plugin-import: "npm:^2.29.1"
2409-
eslint-plugin-jquery: "npm:^1.5.1"
2409+
eslint-plugin-no-jquery: "npm:^3.0.2"
24102410
eslint-plugin-prettier: "npm:^5.2.1"
24112411
eslint-plugin-yml: "npm:^1.14.0"
24122412
glob: "npm:11.0.0"
@@ -4389,12 +4389,12 @@ __metadata:
43894389
languageName: node
43904390
linkType: hard
43914391

4392-
"eslint-plugin-jquery@npm:^1.5.1":
4393-
version: 1.5.1
4394-
resolution: "eslint-plugin-jquery@npm:1.5.1"
4392+
"eslint-plugin-no-jquery@npm:^3.0.2":
4393+
version: 3.0.2
4394+
resolution: "eslint-plugin-no-jquery@npm:3.0.2"
43954395
peerDependencies:
4396-
eslint: ">=5.4.0"
4397-
checksum: 10c0/2b72a3c7600b7524e9f6d323bfcb5f9e6557c86e9bc7e473913bc7b94d2c3bf17f61dfd9d0f72d089a955de2930625cbcb0e991e7f92e7b56b6fe1930123c678
4396+
eslint: ">=8.0.0"
4397+
checksum: 10c0/1f8564ba673553779d41d8239d080bd1774dfe5b588a12b89015499168160297647c860b8c34eeaeab90b6f222190703f19a8d7fab4d45c1ff780feca3c55600
43984398
languageName: node
43994399
linkType: hard
44004400

0 commit comments

Comments
 (0)