Skip to content

Commit c19f379

Browse files
authored
Merge branch 'main' into #222
2 parents c482974 + d5c276c commit c19f379

36 files changed

+2625
-637
lines changed

.github/workflows/check-snippets.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,13 @@ jobs:
2222
with:
2323
node-version: 22
2424

25+
- name: Install dependencies
26+
run: npm ci
27+
2528
- name: Check if snippets are formated correctly
2629
uses: int128/comment-action@v1
2730
with:
28-
run: node utils/checkSnippetFormatting.js # Run the script located in the utils/ folder
31+
run: npx tsx utils/checkSnippetFormatting.ts # Run the script located in the utils/ folder
2932
post-on-failure: |
3033
## :x: Snippet Format Error
31-
${run.output}
34+
${run.output}

.github/workflows/pre-commit-checks.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,8 @@ jobs:
2727
- name: Run lint
2828
run: npm run lint
2929

30+
- name: Run tests
31+
run: npm run test-ci
32+
3033
- name: Run build
3134
run: npm run build

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ lerna-debug.log*
1010
node_modules
1111
dist
1212
dist-ssr
13+
coverage
1314
*.local
1415
*.tsbuildinfo
1516

.husky/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
npm run snippets:check
12
npm run cspell
23
npm run lint
4+
npm run test-ci
35
npm run build

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
node_modules
22
dist
3+
coverage
34
snippets
45
public
56
.vite
67
coverage
78
package-lock.json
8-
.md
9+
.md

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

cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"ignorePaths": [
1212
"node_modules",
1313
"dist",
14+
"coverage",
1415
"public"
1516
]
1617
}

eslint.config.js

Lines changed: 4 additions & 4 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
@@ -23,7 +23,7 @@ function legacyPlugin(name, alias = name) {
2323
}
2424

2525
export default tseslint.config(
26-
{ ignores: ["node_modules", "dist", "build"] },
26+
{ ignores: ["node_modules", "dist", "coverage"] },
2727
{
2828
extends: [
2929
js.configs.recommended,
@@ -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)