Skip to content

Commit bb6afcd

Browse files
authored
chore: bump ESLint to v9 (#371)
Bumps the ESLint version to v9 and revises the linting/formatting setup in the repo. Reformats most of the files.
1 parent 62dbd7d commit bb6afcd

File tree

580 files changed

+203991
-203485
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

580 files changed

+203991
-203485
lines changed

.eslintrc.json

Lines changed: 0 additions & 43 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/config.yaml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
blank_issues_enabled: false
22
contact_links:
3-
- name: GitHub Discussions
4-
url: https://github.com/apify/apify-sdk-js/discussions
5-
about: Got a question? Want to leave some feedback for the Crawlee team? Make a post in GitHub Discussions about it!
6-
- name: Discord
7-
url: https://discord.gg/jyEM2PRvMU
8-
about: Join our Discord server where you can talk with the Crawlee community, as well as the Apify team and get help if you have a question or are unsure of how to do something!
9-
- name: Apify SDK Documentation
10-
url: https://sdk.apify.com/
11-
about: Check out Apify SDK's documentation, maybe you'll find your solution there!
12-
3+
- name: GitHub Discussions
4+
url: https://github.com/apify/apify-sdk-js/discussions
5+
about: Got a question? Want to leave some feedback for the Crawlee team? Make a post in GitHub Discussions about it!
6+
- name: Discord
7+
url: https://discord.gg/jyEM2PRvMU
8+
about: Join our Discord server where you can talk with the Crawlee community, as well as the Apify team and get help if you have a question or are unsure of how to do something!
9+
- name: Apify SDK Documentation
10+
url: https://sdk.apify.com/
11+
about: Check out Apify SDK's documentation, maybe you'll find your solution there!

.github/ISSUE_TEMPLATE/scraper_bug_report.yaml

Lines changed: 57 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -2,67 +2,67 @@ name: Apify scraper bug report
22
description: Report incorrect or unexpected behavior of a scraper
33
labels: [bug]
44
body:
5-
- type: markdown
6-
attributes:
7-
value: |
8-
If you have a question, please ask it on [GitHub Discussions](https://github.com/apify/crawlee/discussions) or in our [Discord server](https://discord.gg/jyEM2PRvMU)
5+
- type: markdown
6+
attributes:
7+
value: |
8+
If you have a question, please ask it on [GitHub Discussions](https://github.com/apify/crawlee/discussions) or in our [Discord server](https://discord.gg/jyEM2PRvMU)
99
10-
- type: dropdown
11-
id: scraper
12-
attributes:
13-
label: Which scraper is this bug report for?
14-
multiple: false
15-
options:
16-
- "cheerio-scraper"
17-
- "playwright-scraper"
18-
- "puppeteer-scraper"
19-
- "web-scraper"
20-
validations:
21-
required: true
10+
- type: dropdown
11+
id: scraper
12+
attributes:
13+
label: Which scraper is this bug report for?
14+
multiple: false
15+
options:
16+
- 'cheerio-scraper'
17+
- 'playwright-scraper'
18+
- 'puppeteer-scraper'
19+
- 'web-scraper'
20+
validations:
21+
required: true
2222

23-
- type: textarea
24-
id: description
25-
attributes:
26-
label: Issue description
27-
description: |
28-
Describe the issue in as much detail as possible.
23+
- type: textarea
24+
id: description
25+
attributes:
26+
label: Issue description
27+
description: |
28+
Describe the issue in as much detail as possible.
2929
30-
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files into it.
31-
placeholder: |
32-
Steps to reproduce with the code sample below:
33-
1. do thing
34-
2. call x method
35-
3. observe behavior
36-
4. see error logs below
37-
validations:
38-
required: true
30+
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files into it.
31+
placeholder: |
32+
Steps to reproduce with the code sample below:
33+
1. do thing
34+
2. call x method
35+
3. observe behavior
36+
4. see error logs below
37+
validations:
38+
required: true
3939

40-
- type: textarea
41-
id: codesample
42-
attributes:
43-
label: Code sample
44-
description: Include a reproducible, minimal code sample. This will be automatically formatted into code, so no need for backticks.
45-
render: TypeScript
46-
placeholder: |
47-
// Your code sample should be...
48-
// ... Minimal - use as little code as possible that still produces the same problem (and is understandable)
49-
// ... Complete - Provide all parts someone else needs to reproduce your problem
50-
// ... Reproducible - Test the code you're about to provide to make sure it reproduces the problem
40+
- type: textarea
41+
id: codesample
42+
attributes:
43+
label: Code sample
44+
description: Include a reproducible, minimal code sample. This will be automatically formatted into code, so no need for backticks.
45+
render: TypeScript
46+
placeholder: |
47+
// Your code sample should be...
48+
// ... Minimal - use as little code as possible that still produces the same problem (and is understandable)
49+
// ... Complete - Provide all parts someone else needs to reproduce your problem
50+
// ... Reproducible - Test the code you're about to provide to make sure it reproduces the problem
5151
52-
- type: input
53-
id: scraper-version
54-
attributes:
55-
label: Scraper version
56-
description: Which version of the scraper are you using? Check it on the Apify console and paste the output. If unsure, leave blank and provide the run link below
52+
- type: input
53+
id: scraper-version
54+
attributes:
55+
label: Scraper version
56+
description: Which version of the scraper are you using? Check it on the Apify console and paste the output. If unsure, leave blank and provide the run link below
5757

58-
- type: input
59-
id: run-link
60-
attributes:
61-
label: Run link
62-
description: If you have the run link that shows this issue, please share it here, as it can help us debug it further
58+
- type: input
59+
id: run-link
60+
attributes:
61+
label: Run link
62+
description: If you have the run link that shows this issue, please share it here, as it can help us debug it further
6363

64-
- type: textarea
65-
id: additional-context
66-
attributes:
67-
label: Other context
68-
description: Any other context, screenshots, or file uploads that help us understand your bug report.
64+
- type: textarea
65+
id: additional-context
66+
attributes:
67+
label: Other context
68+
description: Any other context, screenshots, or file uploads that help us understand your bug report.

.github/ISSUE_TEMPLATE/scraper_feature_request.yaml

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -2,52 +2,52 @@ name: Apify scrapers feature request
22
description: Request a new feature in scrapers
33
labels: [feature]
44
body:
5-
- type: dropdown
6-
id: package
7-
attributes:
8-
label: Which scraper is the feature request for?
9-
multiple: false
10-
options:
11-
- "cheerio-scraper"
12-
- "playwright-scraper"
13-
- "puppeteer-scraper"
14-
- "web-scraper"
15-
validations:
16-
required: true
5+
- type: dropdown
6+
id: package
7+
attributes:
8+
label: Which scraper is the feature request for?
9+
multiple: false
10+
options:
11+
- 'cheerio-scraper'
12+
- 'playwright-scraper'
13+
- 'puppeteer-scraper'
14+
- 'web-scraper'
15+
validations:
16+
required: true
1717

18-
- type: textarea
19-
id: description
20-
attributes:
21-
label: Feature
22-
description: A clear and concise description of what the problem is, or what feature you want to be implemented.
23-
placeholder: I'm always frustrated when..., I would love if there was a shortcut for..., A good addition would be...
24-
validations:
25-
required: true
18+
- type: textarea
19+
id: description
20+
attributes:
21+
label: Feature
22+
description: A clear and concise description of what the problem is, or what feature you want to be implemented.
23+
placeholder: I'm always frustrated when..., I would love if there was a shortcut for..., A good addition would be...
24+
validations:
25+
required: true
2626

27-
- type: textarea
28-
id: motive
29-
attributes:
30-
label: Motivation
31-
description: What made you want to suggest this feature? How would you use it with the scraper and how will it help you?
32-
validations:
33-
required: true
27+
- type: textarea
28+
id: motive
29+
attributes:
30+
label: Motivation
31+
description: What made you want to suggest this feature? How would you use it with the scraper and how will it help you?
32+
validations:
33+
required: true
3434

35-
- type: textarea
36-
id: solution
37-
attributes:
38-
label: Ideal solution or implementation, and any additional constraints
39-
description: What constraints would we need to ensure? How do you see this feature implemented or used by you?
40-
validations:
41-
required: true
35+
- type: textarea
36+
id: solution
37+
attributes:
38+
label: Ideal solution or implementation, and any additional constraints
39+
description: What constraints would we need to ensure? How do you see this feature implemented or used by you?
40+
validations:
41+
required: true
4242

43-
- type: textarea
44-
id: alternatives
45-
attributes:
46-
label: Alternative solutions or implementations
47-
description: Have you considered any alternative solutions or features that would help you with this issue?
43+
- type: textarea
44+
id: alternatives
45+
attributes:
46+
label: Alternative solutions or implementations
47+
description: Have you considered any alternative solutions or features that would help you with this issue?
4848

49-
- type: textarea
50-
id: additional-context
51-
attributes:
52-
label: Other context
53-
description: Any other context, screenshots, or file uploads that help us understand your feature request.
49+
- type: textarea
50+
id: additional-context
51+
attributes:
52+
label: Other context
53+
description: Any other context, screenshots, or file uploads that help us understand your feature request.

0 commit comments

Comments
 (0)