ci: add crate-ci/typos (#129)
Co-authored-by: sgoudham <sgoudham@gmail.com>
This commit is contained in:
parent
313bc013e3
commit
5b60e9a83c
21
.github/workflows/typos.yml
vendored
Normal file
21
.github/workflows/typos.yml
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
name: Typos
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
run:
|
||||
name: Spell Check
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Actions Repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- uses: crate-ci/typos@master
|
||||
|
||||
# We don't want this check to fail on `main` but continue to fail on PRs
|
||||
- name: Successfully Exit When Branch 'main'
|
||||
if: ${{ github.repository == 'catppuccin/userstyles' && github.ref == 'refs/heads/main' }}
|
||||
run: "exit 0"
|
12
.typos.toml
Normal file
12
.typos.toml
Normal file
@ -0,0 +1,12 @@
|
||||
[default]
|
||||
locale = "en-us"
|
||||
|
||||
# maintainer names
|
||||
[default.extend-words]
|
||||
Ren = "Ren"
|
||||
|
||||
[type.css]
|
||||
extend-ignore-re = [
|
||||
# generated classnames from css modules
|
||||
'_[\w\d]+',
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user