Skip to content

Commit 443c991

Browse files
feat: migrate to eslint 9 and add more plugins
BREAKING CHANGE: ESLint 9 is now required
1 parent 2f62315 commit 443c991

Some content is hidden

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

97 files changed

+6711
-3715
lines changed

.commitlintrc.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module.exports = {
22
extends: ["@commitlint/config-conventional"],
33
parserPreset: {
44
parserOpts: {
5-
headerPattern: /^(\w*)(?:\((.*)\))?!?: (.*)$/,
5+
headerPattern: /^(\w*)(?:\((.*)\))?!?: (.*)$/u,
66
},
77
},
88
};

.cspell.json

-70
This file was deleted.

.eslintrc.json

-29
This file was deleted.

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
issuehunt: RebeccaStevens/eslint-config-rebeccastevens
12
ko_fi: rebeccastevens
23
custom: https://github.com/RebeccaStevens/eslint-config-rebeccastevens/blob/main/DONATIONS.md

.github/actions/prepare/action.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ inputs:
55
node-version:
66
required: false
77
description: "`node-version` passed to `actions/setup-node`."
8-
default: v20
8+
default: latest
99

1010
runs:
11-
using: "composite"
11+
using: composite
1212
steps:
1313
- name: Configure Git
1414
run: |
1515
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
1616
git config --global user.name ${GITHUB_ACTOR}
1717
shell: bash
1818
- uses: pnpm/action-setup@v2
19-
- uses: actions/setup-node@v3
19+
- uses: actions/setup-node@v4
2020
with:
2121
node-version: ${{ inputs.node-version }}
22-
cache: "pnpm"
22+
cache: pnpm
2323
- run: pnpm install --frozen-lockfile --ignore-scripts
2424
shell: bash

.github/codecov.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
informational: true
6+
patch:
7+
default:
8+
informational: true

.github/labels.yml

+32-29
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Priority labels
22
- name: "Priority: Critical"
33
color: ee0701
4-
description: "This should be dealt with ASAP. Not fixing this issue would be a serious error."
4+
description: This should be dealt with ASAP. Not fixing this issue would be a serious error.
55
- name: "Priority: High"
66
color: b60205
77
description: "After critical issues are fixed, these should be dealt with before any further issues."
@@ -15,10 +15,10 @@
1515
# Type labels
1616
- name: "Type: Bug"
1717
color: ee0701
18-
description: "Inconsistencies or issues which will cause a problem for users or implementors."
18+
description: Inconsistencies or issues which will cause a problem for users or implementors.
1919
- name: "Type: Documentation"
2020
color: 0052cc
21-
description: "Solely about the documentation of the project."
21+
description: Solely about the documentation of the project.
2222
- name: "Type: Enhancement"
2323
color: 1d76db
2424
description: "Enhancement of the code, not introducing new features."
@@ -27,61 +27,61 @@
2727
description: "Marks an idea, which might be accepted and implemented."
2828
- name: "Type: Feature"
2929
color: 0e8a16
30-
description: "New features or options."
30+
description: New features or options.
3131
- name: "Type: Maintenance"
3232
color: 2af79e
3333
description: "Generic maintenance tasks, e.g., package updates."
3434

3535
# Additional markers
36-
- name: "Security"
36+
- name: Security
3737
color: ee0701
38-
description: "Marks an security issues that needs to be resolved asap."
39-
- name: "Accepted"
38+
description: Marks an security issues that needs to be resolved asap.
39+
- name: Accepted
4040
color: c2e0c6
41-
description: "This issue or PR has been accepted."
42-
- name: "Declined"
41+
description: This issue or PR has been accepted.
42+
- name: Declined
4343
color: f9d0c4
44-
description: "This issue or PR has been declined."
45-
- name: "Breaking Change"
44+
description: This issue or PR has been declined.
45+
- name: Breaking Change
4646
color: a80016
47-
description: "This change will require a new major release."
48-
- name: "Feature Removal"
47+
description: This change will require a new major release.
48+
- name: Feature Removal
4949
color: a80016
50-
description: "A feature is no longer wanted/needed (remove/deprecate it)"
50+
description: A feature is no longer wanted/needed (remove/deprecate it)
5151

5252
# Ongoing Status labels
5353
- name: "Status: Triage"
5454
color: fbca04
55-
description: "This issue needs to be triaged."
55+
description: This issue needs to be triaged.
5656
- name: "Status: Investigation Needed"
5757
color: fef2c0
58-
description: "Issue need to be investigated further."
58+
description: Issue need to be investigated further.
5959
- name: "Status: On Hold"
6060
color: cccccc
61-
description: "Issue or PR that has been placed on hold for now."
61+
description: Issue or PR that has been placed on hold for now.
6262
- name: "Status: In Progress"
6363
color: fbca04
64-
description: "Issue is currently being resolved by a developer."
64+
description: Issue is currently being resolved by a developer.
6565
- name: "Status: Stale"
6666
color: fef2c0
67-
description: "There has not been activity on this issue or PR for quite some time."
67+
description: There has not been activity on this issue or PR for quite some time.
6868
- name: "Status: Awaiting Response"
6969
color: fef2c0
70-
description: "Issue or PR awaits response from the creator."
70+
description: Issue or PR awaits response from the creator.
7171
- name: "Status: Awaiting Feedback"
7272
color: fef2c0
73-
description: "Issue or PR awaits feedback from the community."
73+
description: Issue or PR awaits feedback from the community.
7474
- name: "Status: Blocked"
7575
color: fef2c0
76-
description: "Progress on this issue is currently not possible."
76+
description: Progress on this issue is currently not possible.
7777

7878
# Resolution Status labels
7979
- name: "Resolution: By Design"
8080
color: e6e6e6
81-
description: "The behavior reported in the issue is actually correct."
81+
description: The behavior reported in the issue is actually correct.
8282
- name: "Resolution: Duplicate"
8383
color: e6e6e6
84-
description: "This issue or pull request already exists"
84+
description: This issue or pull request already exists
8585
- name: "Resolution: External"
8686
color: e6e6e6
8787
description: "It was a real bug, but not in the code in this repo."
@@ -90,24 +90,27 @@
9090
description: ""
9191
- name: "Resolution: Not Applicable"
9292
color: e6e6e6
93-
description: "The issue is not relevant to code in this repo and is not an external issue. (Out of scope)"
93+
description: The issue is not relevant to code in this repo and is not an external issue. (Out of scope)
9494
- name: "Resolution: Not Reproducible"
9595
color: e6e6e6
96-
description: "The bug could not be reproduced."
96+
description: The bug could not be reproduced.
9797
- name: "Resolution: Won't Fix"
9898
color: e6e6e6
9999
description: "A real bug or issue, but the issue is not impactful enough to spend time on."
100100
- name: "Resolution: Fixed"
101101
color: c2e0c6
102-
description: "The issue has been fixed."
102+
description: The issue has been fixed.
103103
- name: "Resolution: Added"
104104
color: c2e0c6
105-
description: "This has been added to the project."
105+
description: This has been added to the project.
106106

107107
# Bots
108108
- name: ":blue_heart:"
109109
color: ffffff
110-
description: "Renovate"
110+
description: Renovate
111111
- name: "Status: Released"
112112
color: c2e0c6
113113
description: "It's now live."
114+
- name: "Status: Beta Released"
115+
color: fef2c0
116+
description: "It's now live."

.github/renovate.json

+27-25
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,56 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"automergeStrategy": "rebase",
34
"extends": [
4-
":ignoreModulesAndTests",
5-
"group:monorepos",
6-
"group:recommended",
75
":automergeAll",
86
":automergePr",
9-
":semanticCommits",
10-
":prHourlyLimitNone",
7+
":ignoreModulesAndTests",
118
":prConcurrentLimitNone",
9+
":prHourlyLimitNone",
10+
":semanticCommits",
11+
"group:allNonMajor",
12+
"group:monorepos",
13+
"group:recommended",
1214
"helpers:disableTypesNodeMajor",
13-
"workarounds:typesNodeVersioning",
14-
"schedule:weekly"
15+
"replacements:all",
16+
"schedule:monthly",
17+
"workarounds:all"
1518
],
1619
"labels": ["Type: Maintenance", ":blue_heart:"],
17-
"automergeStrategy": "rebase",
18-
"postUpdateOptions": ["pnpmDedupe"],
1920
"packageRules": [
2021
{
21-
"matchManagers": ["npm"],
22+
"major": {
23+
"semanticCommitType": "build"
24+
},
2225
"matchDepTypes": ["dependencies"],
26+
"matchManagers": ["npm"],
2327
"rangeStrategy": "update-lockfile",
24-
"semanticCommitType": "chore",
2528
"semanticCommitScope": "deps",
26-
"major": {
27-
"semanticCommitType": "build"
28-
}
29+
"semanticCommitType": "chore"
2930
},
3031
{
31-
"matchManagers": ["npm"],
3232
"matchDepTypes": ["devDependencies"],
33+
"matchManagers": ["npm"],
3334
"rangeStrategy": "pin",
34-
"semanticCommitType": "chore",
35-
"semanticCommitScope": "dev-deps"
35+
"semanticCommitScope": "dev-deps",
36+
"semanticCommitType": "chore"
3637
},
3738
{
38-
"matchManagers": ["npm"],
39+
"major": {
40+
"semanticCommitType": "build"
41+
},
3942
"matchDepTypes": ["peerDependencies"],
43+
"matchManagers": ["npm"],
4044
"rangeStrategy": "widen",
41-
"semanticCommitType": "chore",
4245
"semanticCommitScope": "peer-deps",
43-
"major": {
44-
"semanticCommitType": "build"
45-
}
46+
"semanticCommitType": "chore"
4647
},
4748
{
4849
"matchManagers": ["github-actions"],
4950
"rangeStrategy": "replace",
50-
"semanticCommitType": "ci",
51-
"semanticCommitScope": "dev-deps"
51+
"semanticCommitScope": "dev-deps",
52+
"semanticCommitType": "ci"
5253
}
53-
]
54+
],
55+
"postUpdateOptions": ["pnpmDedupe"]
5456
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Accessibility Alt Text Bot
2+
3+
on:
4+
issue_comment:
5+
types:
6+
- created
7+
- edited
8+
issues:
9+
types:
10+
- edited
11+
- opened
12+
pull_request:
13+
types:
14+
- edited
15+
- opened
16+
17+
permissions:
18+
issues: write
19+
pull-requests: write
20+
21+
jobs:
22+
accessibility_alt_text_bot:
23+
if: ${{ !endsWith(github.actor, '[bot]') }}
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: github/[email protected]

0 commit comments

Comments
 (0)