diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml new file mode 100644 index 000000000000..b8a78491f9f5 --- /dev/null +++ b/.github/workflows/spellcheck.yml @@ -0,0 +1,26 @@ +# checks the spelling of code in all files +name: 'Check spelling' +on: + merge_group: + branches: + - main + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + spellcheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: streetsidesoftware/cspell-action@v6 + with: + files: '**/*' + root: '.' + config: './cspell.json' + inline: warning + strict: true + use_cspell_files: false diff --git a/cspell.json b/cspell.json new file mode 100644 index 000000000000..c87301147466 --- /dev/null +++ b/cspell.json @@ -0,0 +1,19 @@ +{ + "language": "en", + "words": [ + "worklets", + "worklet", + "workletization", + "workletize", + "workletizes", + "workletized", + "barfoo", + "devs" + ], + "ignorePaths": [ + "node_modules", + "docs/src/components/Testimonials" + ], + "useGitignore": true +} + diff --git a/docs/src/components/Testimonials/TestimonialList/index.tsx b/docs/src/components/Testimonials/TestimonialList/index.tsx index 2c0e21132f2e..69e7256f32d8 100644 --- a/docs/src/components/Testimonials/TestimonialList/index.tsx +++ b/docs/src/components/Testimonials/TestimonialList/index.tsx @@ -7,7 +7,7 @@ const items = [ { author: 'Marc Rousavy', company: 'Margelo', - body: 'We’ve used Reanimated and Gesture Handler for a ton of apps already - it’s amazingly simple yet poweful! 😍', + body: 'We’ve used Reanimated and Gesture Handler for a ton of apps already - it’s amazingly simple yet powerful! 😍', link: 'https://twitter.com/mrousavy/status/1754909520571019756', image: { alt: 'marc rousavy',