Skip to content

Commit ef33bf2

Browse files
committed
installing tsx, converting root level utils/ scripts to .ts files, adding additional unit tests
1 parent 3f42a75 commit ef33bf2

31 files changed

+1180
-537
lines changed

.github/workflows/check-snippets.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Check if snippets are formated correctly
2626
uses: int128/comment-action@v1
2727
with:
28-
run: node utils/checkSnippetFormatting.js # Run the script located in the utils/ folder
28+
run: tsx utils/checkSnippetFormatting.ts # Run the script located in the utils/ folder
2929
post-on-failure: |
3030
## :x: Snippet Format Error
3131
${run.output}

.github/workflows/consolidate-snippets.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
2828
- name: Consolidate Snippets
2929
run: |
30-
node utils/consolidateSnippets.js # Run the script located in the utils/ folder
30+
tsx utils/consolidateSnippets.ts # Run the script located in the utils/ folder
3131
3232
- name: Commit and push changes
3333
run: |

cspell-dict.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
quicksnip
2+
slugified
23
slugifyed

eslint.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { fixupPluginRules } from "@eslint/compat";
22
import { FlatCompat } from "@eslint/eslintrc";
33
import js from "@eslint/js";
4-
import globals from "globals";
4+
import prettier from "eslint-plugin-prettier/recommended";
55
import reactPlugin from "eslint-plugin-react";
66
import reactHooks from "eslint-plugin-react-hooks";
77
import reactRefresh from "eslint-plugin-react-refresh";
8+
import globals from "globals";
89
import tseslint from "typescript-eslint";
9-
import prettier from "eslint-plugin-prettier/recommended";
1010

1111
const project = "./tsconfig.app.json";
1212
// eslint flat structure backwards compatibility
@@ -32,7 +32,7 @@ export default tseslint.config(
3232
...compat.extends("plugin:import/typescript"),
3333
reactPlugin.configs.flat.recommended,
3434
],
35-
files: ["**/*.{ts,tsx}"],
35+
files: ["**/*.{js,ts,tsx}"],
3636
languageOptions: {
3737
ecmaVersion: 2020,
3838
globals: globals.browser,

0 commit comments

Comments
 (0)