Easy setup for AccessLint GitHub Actions workflow - get accessibility feedback directly in your pull requests.
npx create-accesslintOr install globally:
npm install -g create-accesslint
create-accesslintThis CLI tool creates a GitHub Actions workflow that:
- 🎯 Reviews pull requests - Adds inline comments on accessibility issues
- 🚀 Zero configuration - Uses GitHub OIDC, no tokens required
- ⚡ Smart scanning - Only checks changed files
- 🔧 Multi-framework - Supports HTML, React, Vue, Next.js
The generator will ask you:
- Workflow name - Customize the GitHub Actions workflow name
- Project type - Auto-detects React/Vue/Next.js from package.json
- File patterns - Smart defaults based on your framework choice
- Push triggers - Option to run on pushes to main branch
| Framework | File Patterns | Auto-detected from |
|---|---|---|
| HTML/Static | **/*.{html,htm} |
Default |
| React/TypeScript | **/*.{jsx,tsx} |
react, @types/react |
| Vue.js | **/*.{vue,html} |
vue, @vue/cli |
| Next.js | **/*.{jsx,tsx,html} |
next |
| Custom | Your choice | Manual selection |
Creates .github/workflows/accesslint.yml with:
name: 'AccessLint - Accessibility Check'
on:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
pull-requests: write
id-token: write
jobs:
accesslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: accesslint/actions@v1.1.0
with:
mode: review
file-patterns: '**/*.{jsx,tsx}'After running the generator:
- Commit and push your changes
- Create a pull request to test the workflow
- AccessLint will automatically review accessibility in your code changes
git clone https://github.com/accesslint/create-accesslint
cd create-accesslint
npm install
npm link
# Test in a project
cd /path/to/your/project
npx create-accesslintMIT