Skip to content

Commit

Permalink
feat: migrate to eslint 9 and add more plugins
Browse files Browse the repository at this point in the history
BREAKING CHANGE: ESLint 9 is now required
  • Loading branch information
RebeccaStevens committed Mar 28, 2024
1 parent 2f62315 commit 443c991
Show file tree
Hide file tree
Showing 97 changed files with 6,711 additions and 3,715 deletions.
2 changes: 1 addition & 1 deletion .commitlintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
extends: ["@commitlint/config-conventional"],
parserPreset: {
parserOpts: {
headerPattern: /^(\w*)(?:\((.*)\))?!?: (.*)$/,
headerPattern: /^(\w*)(?:\((.*)\))?!?: (.*)$/u,
},
},
};
70 changes: 0 additions & 70 deletions .cspell.json

This file was deleted.

29 changes: 0 additions & 29 deletions .eslintrc.json

This file was deleted.

1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
issuehunt: RebeccaStevens/eslint-config-rebeccastevens
ko_fi: rebeccastevens
custom: https://github.com/RebeccaStevens/eslint-config-rebeccastevens/blob/main/DONATIONS.md
8 changes: 4 additions & 4 deletions .github/actions/prepare/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ inputs:
node-version:
required: false
description: "`node-version` passed to `actions/setup-node`."
default: v20
default: latest

runs:
using: "composite"
using: composite
steps:
- name: Configure Git
run: |
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git config --global user.name ${GITHUB_ACTOR}
shell: bash
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
cache: "pnpm"
cache: pnpm
- run: pnpm install --frozen-lockfile --ignore-scripts
shell: bash
8 changes: 8 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
coverage:
status:
project:
default:
informational: true
patch:
default:
informational: true
61 changes: 32 additions & 29 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Priority labels
- name: "Priority: Critical"
color: ee0701
description: "This should be dealt with ASAP. Not fixing this issue would be a serious error."
description: This should be dealt with ASAP. Not fixing this issue would be a serious error.
- name: "Priority: High"
color: b60205
description: "After critical issues are fixed, these should be dealt with before any further issues."
Expand All @@ -15,10 +15,10 @@
# Type labels
- name: "Type: Bug"
color: ee0701
description: "Inconsistencies or issues which will cause a problem for users or implementors."
description: Inconsistencies or issues which will cause a problem for users or implementors.
- name: "Type: Documentation"
color: 0052cc
description: "Solely about the documentation of the project."
description: Solely about the documentation of the project.
- name: "Type: Enhancement"
color: 1d76db
description: "Enhancement of the code, not introducing new features."
Expand All @@ -27,61 +27,61 @@
description: "Marks an idea, which might be accepted and implemented."
- name: "Type: Feature"
color: 0e8a16
description: "New features or options."
description: New features or options.
- name: "Type: Maintenance"
color: 2af79e
description: "Generic maintenance tasks, e.g., package updates."

# Additional markers
- name: "Security"
- name: Security
color: ee0701
description: "Marks an security issues that needs to be resolved asap."
- name: "Accepted"
description: Marks an security issues that needs to be resolved asap.
- name: Accepted
color: c2e0c6
description: "This issue or PR has been accepted."
- name: "Declined"
description: This issue or PR has been accepted.
- name: Declined
color: f9d0c4
description: "This issue or PR has been declined."
- name: "Breaking Change"
description: This issue or PR has been declined.
- name: Breaking Change
color: a80016
description: "This change will require a new major release."
- name: "Feature Removal"
description: This change will require a new major release.
- name: Feature Removal
color: a80016
description: "A feature is no longer wanted/needed (remove/deprecate it)"
description: A feature is no longer wanted/needed (remove/deprecate it)

# Ongoing Status labels
- name: "Status: Triage"
color: fbca04
description: "This issue needs to be triaged."
description: This issue needs to be triaged.
- name: "Status: Investigation Needed"
color: fef2c0
description: "Issue need to be investigated further."
description: Issue need to be investigated further.
- name: "Status: On Hold"
color: cccccc
description: "Issue or PR that has been placed on hold for now."
description: Issue or PR that has been placed on hold for now.
- name: "Status: In Progress"
color: fbca04
description: "Issue is currently being resolved by a developer."
description: Issue is currently being resolved by a developer.
- name: "Status: Stale"
color: fef2c0
description: "There has not been activity on this issue or PR for quite some time."
description: There has not been activity on this issue or PR for quite some time.
- name: "Status: Awaiting Response"
color: fef2c0
description: "Issue or PR awaits response from the creator."
description: Issue or PR awaits response from the creator.
- name: "Status: Awaiting Feedback"
color: fef2c0
description: "Issue or PR awaits feedback from the community."
description: Issue or PR awaits feedback from the community.
- name: "Status: Blocked"
color: fef2c0
description: "Progress on this issue is currently not possible."
description: Progress on this issue is currently not possible.

# Resolution Status labels
- name: "Resolution: By Design"
color: e6e6e6
description: "The behavior reported in the issue is actually correct."
description: The behavior reported in the issue is actually correct.
- name: "Resolution: Duplicate"
color: e6e6e6
description: "This issue or pull request already exists"
description: This issue or pull request already exists
- name: "Resolution: External"
color: e6e6e6
description: "It was a real bug, but not in the code in this repo."
Expand All @@ -90,24 +90,27 @@
description: ""
- name: "Resolution: Not Applicable"
color: e6e6e6
description: "The issue is not relevant to code in this repo and is not an external issue. (Out of scope)"
description: The issue is not relevant to code in this repo and is not an external issue. (Out of scope)
- name: "Resolution: Not Reproducible"
color: e6e6e6
description: "The bug could not be reproduced."
description: The bug could not be reproduced.
- name: "Resolution: Won't Fix"
color: e6e6e6
description: "A real bug or issue, but the issue is not impactful enough to spend time on."
- name: "Resolution: Fixed"
color: c2e0c6
description: "The issue has been fixed."
description: The issue has been fixed.
- name: "Resolution: Added"
color: c2e0c6
description: "This has been added to the project."
description: This has been added to the project.

# Bots
- name: ":blue_heart:"
color: ffffff
description: "Renovate"
description: Renovate
- name: "Status: Released"
color: c2e0c6
description: "It's now live."
- name: "Status: Beta Released"
color: fef2c0
description: "It's now live."
52 changes: 27 additions & 25 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,54 +1,56 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"automergeStrategy": "rebase",
"extends": [
":ignoreModulesAndTests",
"group:monorepos",
"group:recommended",
":automergeAll",
":automergePr",
":semanticCommits",
":prHourlyLimitNone",
":ignoreModulesAndTests",
":prConcurrentLimitNone",
":prHourlyLimitNone",
":semanticCommits",
"group:allNonMajor",
"group:monorepos",
"group:recommended",
"helpers:disableTypesNodeMajor",
"workarounds:typesNodeVersioning",
"schedule:weekly"
"replacements:all",
"schedule:monthly",
"workarounds:all"
],
"labels": ["Type: Maintenance", ":blue_heart:"],
"automergeStrategy": "rebase",
"postUpdateOptions": ["pnpmDedupe"],
"packageRules": [
{
"matchManagers": ["npm"],
"major": {
"semanticCommitType": "build"
},
"matchDepTypes": ["dependencies"],
"matchManagers": ["npm"],
"rangeStrategy": "update-lockfile",
"semanticCommitType": "chore",
"semanticCommitScope": "deps",
"major": {
"semanticCommitType": "build"
}
"semanticCommitType": "chore"
},
{
"matchManagers": ["npm"],
"matchDepTypes": ["devDependencies"],
"matchManagers": ["npm"],
"rangeStrategy": "pin",
"semanticCommitType": "chore",
"semanticCommitScope": "dev-deps"
"semanticCommitScope": "dev-deps",
"semanticCommitType": "chore"
},
{
"matchManagers": ["npm"],
"major": {
"semanticCommitType": "build"
},
"matchDepTypes": ["peerDependencies"],
"matchManagers": ["npm"],
"rangeStrategy": "widen",
"semanticCommitType": "chore",
"semanticCommitScope": "peer-deps",
"major": {
"semanticCommitType": "build"
}
"semanticCommitType": "chore"
},
{
"matchManagers": ["github-actions"],
"rangeStrategy": "replace",
"semanticCommitType": "ci",
"semanticCommitScope": "dev-deps"
"semanticCommitScope": "dev-deps",
"semanticCommitType": "ci"
}
]
],
"postUpdateOptions": ["pnpmDedupe"]
}
26 changes: 26 additions & 0 deletions .github/workflows/accessibility-alt-text-bot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Accessibility Alt Text Bot

on:
issue_comment:
types:
- created
- edited
issues:
types:
- edited
- opened
pull_request:
types:
- edited
- opened

permissions:
issues: write
pull-requests: write

jobs:
accessibility_alt_text_bot:
if: ${{ !endsWith(github.actor, '[bot]') }}
runs-on: ubuntu-latest
steps:
- uses: github/[email protected]
Loading

0 comments on commit 443c991

Please sign in to comment.