CARVIEW |
Select Language
HTTP/2 200
date: Wed, 30 Jul 2025 15:47:17 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/eslint/eslint.git
etag: W/"cb768b776c2a3dc8c37507d111657c3c"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=2nKlBpkLR%2F9uO0mEzsFKE5R0CeyRWM2rKmYmuiwceUwq6K9uNcfCc%2BHbI5ouZKoCjUoJe8aqBFVg%2FbpA4Fi4ugV1XEkvvxjGr9ocJt6jaWxm9DHM1rSaeuDnkP9uE8UY9p%2BcPCoBu8y0s3i%2F%2FMlPy%2BGTPrrvBY7tdOx%2FrCNUrV5zWbFGm5PugdZdEtTbr04sWktgI1kCsLCQGPmemWVZ5v%2BSdwdPYyh5kJu1PJ%2FlTJdBka3CODsTrX9u8ZVgxZck59mSsapR%2FuylgVepQ1iepw%3D%3D--0wEWuRsUDHRtrC3O--6xp1FluZdaSOeOwI3%2Bb64w%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1051368125.1753890436; Path=/; Domain=github.com; Expires=Thu, 30 Jul 2026 15:47:16 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 30 Jul 2026 15:47:16 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: BCF8:1917FD:42834:4E7BD:688A3E84
feat: add `sourceCode.isGlobalReference(node)` method (#19695) · eslint/eslint@05b66d0 · GitHub
Copy file name to clipboardExpand all lines: docs/src/extend/custom-rules.md
Copy file name to clipboardExpand all lines: lib/languages/js/source-code/source-code.js
Copy file name to clipboardExpand all lines: lib/rules/no-promise-executor-return.js
Copy file name to clipboardExpand all lines: lib/rules/no-setter-return.js
Copy file name to clipboardExpand all lines: lib/rules/prefer-regex-literals.js
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit 05b66d0
feat: add
* feat: add `sourceCode.isGlobalReference(node)` method
* fix: update tests & docs
* chore: fix lint & remove unwanted chnges
* refactor: don't use findVariable
* fix: cover more cases
* refactor: update lib/languages/js/source-code/source-code.js
Co-authored-by: fisker Cheung <lionkay@gmail.com>
* fix: cache isGlobalReference results
* chore: fix test cases
* chore: update types
* docs: update custom-rules.md
* chore: fix formatting
* chore: revert unwanted changes
---------
Co-authored-by: fisker Cheung <lionkay@gmail.com>sourceCode.isGlobalReference(node)
method (#19695)1 parent 53c3235 commit 05b66d0Copy full SHA for 05b66d0
File tree
Expand file treeCollapse file tree
7 files changed
+730
-102
lines changedFilter options
- docs/src/extend
- lib
- languages/js/source-code
- rules
- types
- tests/lib/languages/js/source-code
Expand file treeCollapse file tree
7 files changed
+730
-102
lines changeddocs/src/extend/custom-rules.md
Copy file name to clipboardExpand all lines: docs/src/extend/custom-rules.md+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
543 | 543 |
| |
544 | 544 |
| |
545 | 545 |
| |
| 546 | + | |
546 | 547 |
| |
547 | 548 |
| |
548 | 549 |
| |
|
lib/languages/js/source-code/source-code.js
Copy file name to clipboardExpand all lines: lib/languages/js/source-code/source-code.js+36Lines changed: 36 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
422 | 422 |
| |
423 | 423 |
| |
424 | 424 |
| |
| 425 | + | |
425 | 426 |
| |
426 | 427 |
| |
427 | 428 |
| |
| |||
902 | 903 |
| |
903 | 904 |
| |
904 | 905 |
| |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
905 | 941 |
| |
906 | 942 |
| |
907 | 943 |
| |
|
lib/rules/no-promise-executor-return.js
Copy file name to clipboardExpand all lines: lib/rules/no-promise-executor-return.js+4-35Lines changed: 4 additions & 35 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
13 | 12 |
| |
14 | 13 |
| |
15 | 14 |
| |
| |||
21 | 20 |
| |
22 | 21 |
| |
23 | 22 |
| |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 |
| - | |
36 |
| - | |
37 |
| - | |
38 |
| - | |
39 |
| - | |
40 |
| - | |
41 |
| - | |
42 |
| - | |
43 |
| - | |
44 |
| - | |
45 |
| - | |
46 |
| - | |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 |
| - | |
52 |
| - | |
53 |
| - | |
54 | 23 |
| |
55 | 24 |
| |
56 | 25 |
| |
57 |
| - | |
| 26 | + | |
58 | 27 |
| |
59 | 28 |
| |
60 |
| - | |
| 29 | + | |
61 | 30 |
| |
62 | 31 |
| |
63 | 32 |
| |
64 | 33 |
| |
65 | 34 |
| |
66 | 35 |
| |
67 | 36 |
| |
68 |
| - | |
| 37 | + | |
69 | 38 |
| |
70 | 39 |
| |
71 | 40 |
| |
| |||
203 | 172 |
| |
204 | 173 |
| |
205 | 174 |
| |
206 |
| - | |
| 175 | + | |
207 | 176 |
| |
208 | 177 |
| |
209 | 178 |
| |
|
lib/rules/no-setter-return.js
Copy file name to clipboardExpand all lines: lib/rules/no-setter-return.js+13-48Lines changed: 13 additions & 48 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
14 | 13 |
| |
15 | 14 |
| |
16 | 15 |
| |
17 | 16 |
| |
18 | 17 |
| |
19 |
| - | |
20 |
| - | |
21 |
| - | |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 | 18 |
| |
36 | 19 |
| |
37 | 20 |
| |
38 | 21 |
| |
39 |
| - | |
| 22 | + | |
40 | 23 |
| |
41 | 24 |
| |
42 | 25 |
| |
43 | 26 |
| |
44 | 27 |
| |
45 | 28 |
| |
46 | 29 |
| |
47 |
| - | |
| 30 | + | |
48 | 31 |
| |
49 | 32 |
| |
50 | 33 |
| |
| |||
59 | 42 |
| |
60 | 43 |
| |
61 | 44 |
| |
62 |
| - | |
| 45 | + | |
63 | 46 |
| |
64 |
| - | |
65 | 47 |
| |
66 | 48 |
| |
67 | 49 |
| |
68 | 50 |
| |
69 | 51 |
| |
70 | 52 |
| |
71 | 53 |
| |
72 |
| - | |
| 54 | + | |
73 | 55 |
| |
74 | 56 |
| |
75 |
| - | |
| 57 | + | |
76 | 58 |
| |
77 | 59 |
| |
78 | 60 |
| |
79 |
| - | |
| 61 | + | |
80 | 62 |
| |
81 | 63 |
| |
82 | 64 |
| |
83 | 65 |
| |
84 | 66 |
| |
85 | 67 |
| |
86 |
| - | |
| 68 | + | |
87 | 69 |
| |
88 | 70 |
| |
89 | 71 |
| |
| |||
101 | 83 |
| |
102 | 84 |
| |
103 | 85 |
| |
104 |
| - | |
| 86 | + | |
105 | 87 |
| |
106 | 88 |
| |
107 | 89 |
| |
108 | 90 |
| |
109 | 91 |
| |
110 | 92 |
| |
111 |
| - | |
| 93 | + | |
112 | 94 |
| |
113 | 95 |
| |
114 | 96 |
| |
| |||
124 | 106 |
| |
125 | 107 |
| |
126 | 108 |
| |
127 |
| - | |
| 109 | + | |
128 | 110 |
| |
129 | 111 |
| |
130 |
| - | |
| 112 | + | |
131 | 113 |
| |
132 | 114 |
| |
133 | 115 |
| |
| |||
144 | 126 |
| |
145 | 127 |
| |
146 | 128 |
| |
147 |
| - | |
| 129 | + | |
148 | 130 |
| |
149 | 131 |
| |
150 | 132 |
| |
| |||
153 | 135 |
| |
154 | 136 |
| |
155 | 137 |
| |
156 |
| - | |
157 |
| - | |
158 |
| - | |
159 |
| - | |
160 |
| - | |
161 |
| - | |
162 |
| - | |
163 |
| - | |
164 |
| - | |
165 |
| - | |
166 |
| - | |
167 |
| - | |
168 |
| - | |
169 |
| - | |
170 |
| - | |
171 | 138 |
| |
172 | 139 |
| |
173 | 140 |
| |
| |||
200 | 167 |
| |
201 | 168 |
| |
202 | 169 |
| |
203 |
| - | |
204 |
| - | |
205 | 170 |
| |
206 | 171 |
| |
207 |
| - | |
| 172 | + | |
208 | 173 |
| |
209 | 174 |
| |
210 | 175 |
| |
|
lib/rules/prefer-regex-literals.js
Copy file name to clipboardExpand all lines: lib/rules/prefer-regex-literals.js+1-18Lines changed: 1 addition & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 |
| - | |
18 | 17 |
| |
19 | 18 |
| |
20 | 19 |
| |
| |||
167 | 166 |
| |
168 | 167 |
| |
169 | 168 |
| |
170 |
| - | |
171 |
| - | |
172 |
| - | |
173 |
| - | |
174 |
| - | |
175 |
| - | |
176 |
| - | |
177 |
| - | |
178 |
| - | |
179 |
| - | |
180 |
| - | |
181 |
| - | |
182 |
| - | |
183 |
| - | |
184 |
| - | |
185 |
| - | |
186 | 169 |
| |
187 | 170 |
| |
188 | 171 |
| |
| |||
193 | 176 |
| |
194 | 177 |
| |
195 | 178 |
| |
196 |
| - | |
| 179 | + | |
197 | 180 |
| |
198 | 181 |
| |
199 | 182 |
| |
|
+2Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
289 | 289 |
| |
290 | 290 |
| |
291 | 291 |
| |
| 292 | + | |
| 293 | + | |
292 | 294 |
| |
293 | 295 |
| |
294 | 296 |
| |
|
You can’t perform that action at this time.
0 commit comments