CARVIEW |
Select Language
HTTP/2 200
date: Thu, 24 Jul 2025 16:38:37 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/"cdaf8e904a6cc3fcc1286d9bcdd220fe"
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=OoLCl1xQKRQLlSto0Orr7bkkd62BYELQLGiQVBF7ixU5her2y8tjMFmLtZnqxyxC%2BZlUEtgcgLS6tSVI%2BLqsA2S0tB%2B%2BfzLC4xtUv0xEBMUKqfE8oS0eFUUwyPSNRNisrwq5RKVDPxb6A2THR6hptt2zxNAcuyDhQZLpe26yLtiM6XjmwVofq3PBDJFGRKJeEGyhlaHQI%2BxjryhpvkDXAr7sJaLCtRCacrRX5dgI%2F0nQFFvddqY0vZzAnK9mPdGy%2F84zA4Yuq3%2BX18kOU1Ropg%3D%3D--kzo%2F3cgvfHQzgEWc--%2BRf7hyQk5EbUf2S0vllm7w%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.56492017.1753375117; Path=/; Domain=github.com; Expires=Fri, 24 Jul 2026 16:38:37 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Fri, 24 Jul 2026 16:38:37 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: EDD4:B426E:3D85:48F0:6882618D
feat: add deprecation warnings for legacy API in `RuleTester` (#16063) · eslint/eslint@1cdcbca · GitHub
Copy file name to clipboardExpand all lines: lib/rule-tester/rule-tester.js
Copy file name to clipboardExpand all lines: tests/fixtures/testers/rule-tester/modify-ast-at-first.js
Copy file name to clipboardExpand all lines: tests/fixtures/testers/rule-tester/modify-ast-at-last.js
Copy file name to clipboardExpand all lines: tests/fixtures/testers/rule-tester/modify-ast.js
Copy file name to clipboardExpand all lines: tests/fixtures/testers/rule-tester/no-eval.js
Copy file name to clipboardExpand all lines: tests/fixtures/testers/rule-tester/no-invalid-args.js
Copy file name to clipboardExpand all lines: tests/fixtures/testers/rule-tester/no-invalid-schema.js
Copy file name to clipboardExpand all lines: tests/fixtures/testers/rule-tester/no-schema-violation.js
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit 1cdcbca
authored
feat: add deprecation warnings for legacy API in
* feat: add deprecation warnings for legacy API in `RuleTester`
* fix: use unique deprecation code for rules
* refactor: avoid using deprecation codes
* refactor: use object-style syntax
* refactor: use process.emitWarning()
* test: add more cases
* fix: improve check for missing schema
* refactor: update fixtures
* test: add test cases when schema is undefined or null
* fix: lintRuleTester
(#16063)1 parent 0396775 commit 1cdcbcaCopy full SHA for 1cdcbca
File tree
Expand file treeCollapse file tree
13 files changed
+498
-214
lines changedFilter options
- lib/rule-tester
- tests
- fixtures/testers/rule-tester
- lib/rule-tester
Expand file treeCollapse file tree
13 files changed
+498
-214
lines changedlib/rule-tester/rule-tester.js
Copy file name to clipboardExpand all lines: lib/rule-tester/rule-tester.js+42Lines changed: 42 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
305 | 305 |
| |
306 | 306 |
| |
307 | 307 |
| |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
308 | 338 |
| |
309 | 339 |
| |
310 | 340 |
| |
| |||
521 | 551 |
| |
522 | 552 |
| |
523 | 553 |
| |
| 554 | + | |
| 555 | + | |
| 556 | + | |
524 | 557 |
| |
525 | 558 |
| |
526 | 559 |
| |
| |||
578 | 611 |
| |
579 | 612 |
| |
580 | 613 |
| |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
581 | 623 |
| |
582 | 624 |
| |
583 | 625 |
| |
|
tests/fixtures/testers/rule-tester/modify-ast-at-first.js
Copy file name to clipboardExpand all lines: tests/fixtures/testers/rule-tester/modify-ast-at-first.js+29-23Lines changed: 29 additions & 23 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 |
| - | |
19 |
| - | |
20 |
| - | |
21 |
| - | |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
27 | 33 |
| |
28 |
| - | |
29 |
| - | |
30 |
| - | |
| 34 | + | |
| 35 | + | |
31 | 36 |
| |
32 |
| - | |
33 |
| - | |
34 |
| - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
35 | 41 |
| |
36 |
| - | |
37 |
| - | |
| 42 | + | |
| 43 | + | |
38 | 44 |
|
tests/fixtures/testers/rule-tester/modify-ast-at-last.js
Copy file name to clipboardExpand all lines: tests/fixtures/testers/rule-tester/modify-ast-at-last.js+29-23Lines changed: 29 additions & 23 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 |
| - | |
19 |
| - | |
20 |
| - | |
21 |
| - | |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
27 | 33 |
| |
28 |
| - | |
29 |
| - | |
30 |
| - | |
| 34 | + | |
| 35 | + | |
31 | 36 |
| |
32 |
| - | |
33 |
| - | |
34 |
| - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
35 | 41 |
| |
36 |
| - | |
37 |
| - | |
| 42 | + | |
| 43 | + | |
38 | 44 |
|
tests/fixtures/testers/rule-tester/modify-ast.js
Copy file name to clipboardExpand all lines: tests/fixtures/testers/rule-tester/modify-ast.js+14-8Lines changed: 14 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
13 |
| - | |
14 |
| - | |
15 |
| - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
16 | 21 |
| |
17 |
| - | |
18 |
| - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
19 | 25 |
| |
20 |
| - | |
21 |
| - | |
| 26 | + | |
| 27 | + | |
22 | 28 |
|
tests/fixtures/testers/rule-tester/no-eval.js
Copy file name to clipboardExpand all lines: tests/fixtures/testers/rule-tester/no-eval.js+16-12Lines changed: 16 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| 6 | + | |
| 7 | + | |
6 | 8 |
| |
7 | 9 |
| |
8 | 10 |
| |
9 | 11 |
| |
10 |
| - | |
11 |
| - | |
12 |
| - | |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 |
| - | |
19 |
| - | |
20 |
| - | |
21 |
| - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 |
|
tests/fixtures/testers/rule-tester/no-invalid-args.js
Copy file name to clipboardExpand all lines: tests/fixtures/testers/rule-tester/no-invalid-args.js+18-10Lines changed: 18 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| 6 | + | |
| 7 | + | |
6 | 8 |
| |
7 | 9 |
| |
8 | 10 |
| |
9 | 11 |
| |
10 |
| - | |
11 |
| - | |
12 |
| - | |
13 |
| - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
14 | 21 |
| |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 |
| - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
19 | 27 |
| |
20 |
| - | |
21 |
| - | |
| 28 | + | |
| 29 | + | |
22 | 30 |
|
tests/fixtures/testers/rule-tester/no-invalid-schema.js
Copy file name to clipboardExpand all lines: tests/fixtures/testers/rule-tester/no-invalid-schema.js+17-17Lines changed: 17 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| 6 | + | |
| 7 | + | |
6 | 8 |
| |
7 | 9 |
| |
8 | 10 |
| |
9 | 11 |
| |
10 |
| - | |
11 |
| - | |
12 |
| - | |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 |
| - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
19 | 25 |
| |
20 |
| - | |
21 |
| - | |
| 26 | + | |
| 27 | + | |
22 | 28 |
| |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - |
tests/fixtures/testers/rule-tester/no-schema-violation.js
Copy file name to clipboardExpand all lines: tests/fixtures/testers/rule-tester/no-schema-violation.js+18-17Lines changed: 18 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| 6 | + | |
| 7 | + | |
6 | 8 |
| |
7 | 9 |
| |
8 | 10 |
| |
9 | 11 |
| |
10 |
| - | |
11 |
| - | |
12 |
| - | |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 |
| - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
19 | 26 |
| |
20 |
| - | |
21 |
| - | |
| 27 | + | |
| 28 | + | |
22 | 29 |
| |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
|
You can’t perform that action at this time.
0 commit comments