Skip to content

Commit 8ec379f

Browse files
authored
Merge pull request #4311 from 10up/upkeep/4286
upkeep/4286 : add crate-ci/typos
2 parents 0cfd906 + 97fb2bb commit 8ec379f

4 files changed

Lines changed: 62 additions & 1 deletion

File tree

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
/.husky export-ignore
2222
/.lintstagedrc.json export-ignore
2323
/.stylelintrc export-ignore
24+
/.typos.toml export-ignore
2425
/.wp-env.json export-ignore
2526
/CHANGELOG.md export-ignore
2627
/CODE_OF_CONDUCT.md export-ignore

.github/workflows/typos.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Spell Check
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- develop
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
typos:
13+
name: Typos
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Run typos
20+
uses: crate-ci/typos@master

.typos.toml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[files]
2+
extend-exclude = [
3+
".git/",
4+
"node_modules/",
5+
"vendor/",
6+
"dist/",
7+
"build/",
8+
"lang/",
9+
"tests/e2e/src/wordpress-files/test-docs/content-example.xml",
10+
"tests/e2e/src/fixtures/txt-file.txt",
11+
"tests/e2e/src/fixtures/csv-file.csv",
12+
]
13+
ignore-hidden = false
14+
15+
[default]
16+
extend-ignore-re = [
17+
"@[A-Za-z0-9_-]+",
18+
"Fabian Marz",
19+
"Tung Du",
20+
"Van Patten",
21+
"github:[^\"\\s]+",
22+
"not so good match - beautful",
23+
]
24+
25+
[default.extend-words]
26+
# Typos previously found in this codebase
27+
"utilitary" = "utility"
28+
"heirarchal" = "hierarchical"
29+
"mimcs" = "mimics"
30+
"santitize" = "sanitize"
31+
"warnngs" = "warnings"
32+
"versino" = "version"
33+
"degister" = "deregister"
34+
"quries" = "queries"
35+
"supposably" = "supposably"
36+
"stati" = "stati"
37+
38+
[default.extend-identifiers]
39+
"Automattic" = "Automattic"
40+
"avaiableServices" = "avaiableServices"

assets/js/blocks/facets/meta-range/view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const App = ({ max, min }) => {
6363
*
6464
* @param {Array} value Value range.
6565
* @param {number} value.0 Minimum value.
66-
* @param {number} value.1 Mximum value.
66+
* @param {number} value.1 Maximum value.
6767
* @returns {void}
6868
*/
6969
const onChange = ([from, to]) => {

0 commit comments

Comments
 (0)