diff --git a/.github/workflows/CI-build.yml b/.github/workflows/CI-build.yml index cc19d429b..a14763d28 100644 --- a/.github/workflows/CI-build.yml +++ b/.github/workflows/CI-build.yml @@ -14,6 +14,11 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Check typos on code + uses: crate-ci/typos@master + with: + config: ./typos.toml + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b83bcc01..7407a96b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -866,7 +866,7 @@ This release introduces [headless mode](https://livecodes.io/docs/sdk/headless). - **sync:** do not re-download unchanged remote sync data ([1a56d48](https://github.com/live-codes/livecodes/commit/1a56d4831193cafbb4ede9d6451fc1ca4ba87c08)) - **sync:** fix sync (cache and encoding) ([feec8d5](https://github.com/live-codes/livecodes/commit/feec8d57516109f028d3e5b88a00f74e9e6a93d0)) - **templates:** fix loading starter template from unsaved project ([2f09967](https://github.com/live-codes/livecodes/commit/2f09967da223d2de9f6db8bb851edf38a305e6b6)) -- **tests:** fix chai assertion messages by imorting chai from jsdelivr(+esm) ([0b9cef0](https://github.com/live-codes/livecodes/commit/0b9cef0ae1d91b81f8e513264d8d209927766b90)) +- **tests:** fix chai assertion messages by importing chai from jsdelivr(+esm) ([0b9cef0](https://github.com/live-codes/livecodes/commit/0b9cef0ae1d91b81f8e513264d8d209927766b90)) - **tools:** fix firing onActivate on resizing tools pane ([6e26981](https://github.com/live-codes/livecodes/commit/6e26981bb8bcc2a540cd868c9bf6b5a98e4f2c8f)) - **UI:** disable autofocus in embeds ([b009f74](https://github.com/live-codes/livecodes/commit/b009f742d91e09018fe922c02023c98c604c8232)) - **UI:** fix focus on hidden editors ([2453121](https://github.com/live-codes/livecodes/commit/24531216309ddf9a8ff93feb57f9f6d5bea55511)) @@ -1197,7 +1197,7 @@ This release introduces [headless mode](https://livecodes.io/docs/sdk/headless). - **sync:** do not re-download unchanged remote sync data ([1a56d48](https://github.com/live-codes/livecodes/commit/1a56d4831193cafbb4ede9d6451fc1ca4ba87c08)) - **sync:** fix sync (cache and encoding) ([feec8d5](https://github.com/live-codes/livecodes/commit/feec8d57516109f028d3e5b88a00f74e9e6a93d0)) - **templates:** fix loading starter template from unsaved project ([2f09967](https://github.com/live-codes/livecodes/commit/2f09967da223d2de9f6db8bb851edf38a305e6b6)) -- **tests:** fix chai assertion messages by imorting chai from jsdelivr(+esm) ([0b9cef0](https://github.com/live-codes/livecodes/commit/0b9cef0ae1d91b81f8e513264d8d209927766b90)) +- **tests:** fix chai assertion messages by importing chai from jsdelivr(+esm) ([0b9cef0](https://github.com/live-codes/livecodes/commit/0b9cef0ae1d91b81f8e513264d8d209927766b90)) - **tools:** fix firing onActivate on resizing tools pane ([6e26981](https://github.com/live-codes/livecodes/commit/6e26981bb8bcc2a540cd868c9bf6b5a98e4f2c8f)) - **UI:** disable autofocus in embeds ([b009f74](https://github.com/live-codes/livecodes/commit/b009f742d91e09018fe922c02023c98c604c8232)) - **UI:** fix focus on hidden editors ([2453121](https://github.com/live-codes/livecodes/commit/24531216309ddf9a8ff93feb57f9f6d5bea55511)) @@ -1737,7 +1737,7 @@ This release introduces [headless mode](https://livecodes.io/docs/sdk/headless). - **sync:** do not re-download unchanged remote sync data ([1a56d48](https://github.com/live-codes/livecodes/commit/1a56d4831193cafbb4ede9d6451fc1ca4ba87c08)) - **sync:** fix sync (cache and encoding) ([feec8d5](https://github.com/live-codes/livecodes/commit/feec8d57516109f028d3e5b88a00f74e9e6a93d0)) - **templates:** fix loading starter template from unsaved project ([2f09967](https://github.com/live-codes/livecodes/commit/2f09967da223d2de9f6db8bb851edf38a305e6b6)) -- **tests:** fix chai assertion messages by imorting chai from jsdelivr(+esm) ([0b9cef0](https://github.com/live-codes/livecodes/commit/0b9cef0ae1d91b81f8e513264d8d209927766b90)) +- **tests:** fix chai assertion messages by importing chai from jsdelivr(+esm) ([0b9cef0](https://github.com/live-codes/livecodes/commit/0b9cef0ae1d91b81f8e513264d8d209927766b90)) - **tools:** fix firing onActivate on resizing tools pane ([6e26981](https://github.com/live-codes/livecodes/commit/6e26981bb8bcc2a540cd868c9bf6b5a98e4f2c8f)) - **UI:** disable autofocus in embeds ([b009f74](https://github.com/live-codes/livecodes/commit/b009f742d91e09018fe922c02023c98c604c8232)) - **UI:** fix focus on hidden editors ([2453121](https://github.com/live-codes/livecodes/commit/24531216309ddf9a8ff93feb57f9f6d5bea55511)) @@ -1831,7 +1831,7 @@ This release introduces [headless mode](https://livecodes.io/docs/sdk/headless). - **config:** store user config ([45de26b](https://github.com/live-codes/livecodes/commit/45de26b12dd984281dded89f4ab00417c6754d0b)) - **config:** upgrade config from previous versions ([237c137](https://github.com/live-codes/livecodes/commit/237c13737398864ee8bb75108b792a47647e32ec)) - **config:** validate config before load ([e2f82bf](https://github.com/live-codes/livecodes/commit/e2f82bf6f7c818626f5cb0bff1ba8e7a8963ae1a)) -- **deploy:** allow commiting source code and result as separate files ([a183ede](https://github.com/live-codes/livecodes/commit/a183edecc64b789aa447c593e5b298370b854a28)) +- **deploy:** allow committing source code and result as separate files ([a183ede](https://github.com/live-codes/livecodes/commit/a183edecc64b789aa447c593e5b298370b854a28)) - **deploy:** allow deploy to github pages ([997ab39](https://github.com/live-codes/livecodes/commit/997ab398994ad61bab93c6fccb4bea74db103073)) - **editor:** add codemirror emmet support ([f4c2c0f](https://github.com/live-codes/livecodes/commit/f4c2c0ff1218fc5cb501836b2de5a8207518e002)) - **editor:** add prismjs as readonly code editor ([5c0b6c2](https://github.com/live-codes/livecodes/commit/5c0b6c2fe0acc616d61042e1aafbeefca75c5c94)) diff --git a/typos.toml b/typos.toml new file mode 100644 index 000000000..1911cb0b1 --- /dev/null +++ b/typos.toml @@ -0,0 +1,28 @@ +# Check config spec at https://github.com/crate-ci/typos/blob/master/docs/reference.md + +[files] +ignore-vcs = true # Respect .gitignore +extend-exclude = [ + "src/livecodes/i18n/locales/**/*.ts", # Ignore locale files + "src/livecodes/services/google-fonts.ts", # Font name + "src/livecodes/templates/starter/blockly-starter.ts", # Random string id +] + +[default] +extend-ignore-re = [ + "\\/.+\\/", # Regex literal + "\\[[0-9a-fA-F]{7}\\]", # Git short hash +] + +[default.extend-words] +styl = "styl" +edn = "edn" +darcula = "darcula" +Darcula = "Darcula" +IIF = "IIF" +xdescribe = "xdescribe" +arange = "arange" + +[type.svg] +# Skip check contents for svg files +check-file = false