From b4c274b3fba73895cf9924ebd6548979eb99e06e Mon Sep 17 00:00:00 2001 From: Keyrxng <106303466+Keyrxng@users.noreply.github.com> Date: Tue, 5 Mar 2024 11:26:47 +0000 Subject: [PATCH] chore: cspell and format --- .cspell.json | 2 +- .github/workflows/build.yml | 4 ++-- .github/workflows/jest-testing.yml | 2 +- .github/workflows/knip.yml | 2 +- knip.ts | 2 +- tests/kebab-case/kebab.test.ts | 4 ++-- tsconfig.json | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.cspell.json b/.cspell.json index dfd6093..5da27dc 100644 --- a/.cspell.json +++ b/.cspell.json @@ -4,7 +4,7 @@ "ignorePaths": ["**/*.json", "**/*.css", "node_modules", "**/*.log"], "useGitignore": true, "language": "en", - "words": ["dataurl", "devpool", "outdir", "servedir"], + "words": ["dataurl", "devpool", "outdir", "servedir", "Knip", "mswjs"], "dictionaries": ["typescript", "node", "software-terms"], "import": ["@cspell/dict-typescript/cspell-ext.json", "@cspell/dict-node/cspell-ext.json", "@cspell/dict-software-terms"], "ignoreRegExpList": ["[0-9a-fA-F]{6}"] diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 899707c..0d25132 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,8 +28,8 @@ jobs: yarn yarn build # env: # Set environment variables for the build - # SUPABASE_URL: "https://wfzpewmlyiozupulbuur.supabase.co" - # SUPABASE_ANON_KEY: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6IndmenBld21seWlvenVwdWxidXVyIiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTU2NzQzMzksImV4cCI6MjAxMTI1MDMzOX0.SKIL3Q0NOBaMehH0ekFspwgcu3afp3Dl9EDzPqs1nKs" + # SUPABASE_URL: "https://wfzpewmlyiozupulbuur.supabase.co" + # SUPABASE_ANON_KEY: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6IndmenBld21seWlvenVwdWxidXVyIiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTU2NzQzMzksImV4cCI6MjAxMTI1MDMzOX0.SKIL3Q0NOBaMehH0ekFspwgcu3afp3Dl9EDzPqs1nKs" - name: Deploy to Cloudflare uses: ubiquity/cloudflare-deploy-action@main diff --git a/.github/workflows/jest-testing.yml b/.github/workflows/jest-testing.yml index 208cf7b..fe608c3 100644 --- a/.github/workflows/jest-testing.yml +++ b/.github/workflows/jest-testing.yml @@ -16,7 +16,7 @@ jobs: steps: - uses: actions/setup-node@v4 with: - node-version: '20.10.0' + node-version: "20.10.0" - uses: actions/checkout@master with: fetch-depth: 0 diff --git a/.github/workflows/knip.yml b/.github/workflows/knip.yml index df68bda..a16c31f 100644 --- a/.github/workflows/knip.yml +++ b/.github/workflows/knip.yml @@ -27,4 +27,4 @@ jobs: comment_id: ${{ github.workflow }}-reporter command_script_name: knip-ci annotations: true - ignore_results: false \ No newline at end of file + ignore_results: false diff --git a/knip.ts b/knip.ts index 57b5e39..a749511 100644 --- a/knip.ts +++ b/knip.ts @@ -8,4 +8,4 @@ const config: KnipConfig = { ignoreDependencies: [], }; -export default config; \ No newline at end of file +export default config; diff --git a/tests/kebab-case/kebab.test.ts b/tests/kebab-case/kebab.test.ts index 96bfce6..9dbb219 100644 --- a/tests/kebab-case/kebab.test.ts +++ b/tests/kebab-case/kebab.test.ts @@ -39,8 +39,8 @@ describe("checkFileNames", () => { expect(readFile).toHaveBeenCalledWith(".gitignore", "utf8"); }); - it("should ignore all stlying patterns", async () => { - const badNames = ["camelCase.ts", "PascalCase.ts", "snek_case.ts", "UPPER_CASE.ts", "dot.case.ts", "space case.ts", "Title Case.ts", "Sentence case.ts"]; + it("should ignore all styling patterns", async () => { + const badNames = ["camelCase.ts", "PascalCase.ts", "snake_case.ts", "UPPER_CASE.ts", "dot.case.ts", "space case.ts", "Title Case.ts", "Sentence case.ts"]; readDir.mockResolvedValue([...badNames, COMPLIANT_FILE]); const nonCompliantFiles = await checkFileNames(dir, options); expect(nonCompliantFiles).toEqual(badNames); diff --git a/tsconfig.json b/tsconfig.json index f9ab3da..c6d3097 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -104,7 +104,7 @@ /* Completeness */ // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ - "skipLibCheck": true, /* Skip type checking all .d.ts files. */ + "skipLibCheck": true /* Skip type checking all .d.ts files. */, "resolveJsonModule": true } }