Skip to content

Commit

Permalink
Feat/spellcheck (#64)
Browse files Browse the repository at this point in the history
* feat(ci): spell check

* chore: ignore check file

* chore: ignore file
  • Loading branch information
uyarn authored Apr 12, 2022
1 parent 5ba83be commit fa7e8eb
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/configs/typos_config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
files.extend-exclude = [
"package-lock.json",
"src/configs/color.ts"
]
14 changes: 14 additions & 0 deletions .github/workflows/pr-spelling.temp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# force copy from tencent/tdesign
name: pr-spell-check
on: [pull_request]

jobs:
run:
name: Spell Check with Typos
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check spelling
uses: crate-ci/typos@master
with:
config: .github/configs/typos_config.toml
Empty file added src/configs/style.ts
Empty file.
2 changes: 1 addition & 1 deletion src/pages/Result/BrowserIncompatible/index.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
justify-content: space-between;
color: var(--td-text-color-secondary);

.recommandContainer {
.recommendContainer {
position: absolute;
display: flex;
align-items: center;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Result/BrowserIncompatible/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const BrowserIncompatible = () => (

<div className={style.resultSlotContainer}>
<Button className={style.rightButton}>返回首页</Button>
<div className={style.recommandContainer}>
<div className={style.recommendContainer}>
<div>TDesign Starter 推荐以下主流浏览器</div>
<div className={style.recommendBrowser}>
<div>
Expand Down

0 comments on commit fa7e8eb

Please sign in to comment.