From 633bc26591ba592ade9adcde0b6209490d376d8b Mon Sep 17 00:00:00 2001 From: Ashutosh Khanduala Date: Mon, 16 Dec 2024 16:18:56 +0530 Subject: [PATCH 1/6] test ci --- .editorconfig | 10 ++++++++++ .gitattributes | 4 ++++ .gitignore | 2 ++ src/index.ts | 3 +++ 4 files changed, 19 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitattributes create mode 100644 src/index.ts diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..1ed453a --- /dev/null +++ b/.editorconfig @@ -0,0 +1,10 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true + +[*.{js,json,yml}] +charset = utf-8 +indent_style = space +indent_size = 2 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..af3ad12 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +/.yarn/** linguist-vendored +/.yarn/releases/* binary +/.yarn/plugins/**/* binary +/.pnp.* binary linguist-generated diff --git a/.gitignore b/.gitignore index c6bba59..76e449e 100644 --- a/.gitignore +++ b/.gitignore @@ -128,3 +128,5 @@ dist .yarn/build-state.yml .yarn/install-state.gz .pnp.* + +.dump diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..e29e78d --- /dev/null +++ b/src/index.ts @@ -0,0 +1,3 @@ +export const add = (a: number, b: number) => { + return a + b +} From cb870da8428f4673fa35b75e41fde1b402638646 Mon Sep 17 00:00:00 2001 From: Ashutosh Khanduala Date: Mon, 16 Dec 2024 16:20:37 +0530 Subject: [PATCH 2/6] bad ts commit --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index e29e78d..4595f55 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,3 @@ -export const add = (a: number, b: number) => { +export const add = (a: number, b: numsber) => { return a + b } From 2c0842e8150b9d39807681fc5b56c01772afe2ea Mon Sep 17 00:00:00 2001 From: Ashutosh Khanduala Date: Mon, 16 Dec 2024 16:42:39 +0530 Subject: [PATCH 3/6] add tsc for TS type checkinh --- .../workflows/pull_request_code_quality.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pull_request_code_quality.yml b/.github/workflows/pull_request_code_quality.yml index 461742b..c8d5298 100644 --- a/.github/workflows/pull_request_code_quality.yml +++ b/.github/workflows/pull_request_code_quality.yml @@ -1,4 +1,4 @@ -name: Code quality +name: Code Quality on: push: @@ -10,9 +10,25 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + + - name: Setup Node.js 20.x + uses: actions/setup-node@v4 + with: + node-version: 20.x + registry-url: "https://registry.npmjs.org" + + - name: Install yarn + run: | + npm i yarn -g + yarn install + - name: Setup Biome uses: biomejs/setup-biome@v2 with: version: latest + - name: Run Biome run: biome ci . + + - name: Run TypeScript Check + run: npx tsc --noEmit From ed85dea9f7cd23699af9a494342cb75cf619f34f Mon Sep 17 00:00:00 2001 From: Ashutosh Khanduala Date: Mon, 16 Dec 2024 16:49:23 +0530 Subject: [PATCH 4/6] enable corepack --- .github/workflows/pull_request_code_quality.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pull_request_code_quality.yml b/.github/workflows/pull_request_code_quality.yml index c8d5298..5402d03 100644 --- a/.github/workflows/pull_request_code_quality.yml +++ b/.github/workflows/pull_request_code_quality.yml @@ -17,10 +17,11 @@ jobs: node-version: 20.x registry-url: "https://registry.npmjs.org" + - name: Enable Corepack + run: corepack enable + - name: Install yarn - run: | - npm i yarn -g - yarn install + run: yarn install - name: Setup Biome uses: biomejs/setup-biome@v2 From 0dc3b670c636e3d3dab0efd16fc5b42d77a39698 Mon Sep 17 00:00:00 2001 From: Ashutosh Khanduala Date: Mon, 16 Dec 2024 16:52:43 +0530 Subject: [PATCH 5/6] bad js commit --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 4595f55..e28c8be 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,3 @@ -export const add = (a: number, b: numsber) => { +export cons add = (a: number, b: number) => { return a + b } From 3c8d8e695f7a6c690230ff0567c129b4a249a021 Mon Sep 17 00:00:00 2001 From: Ashutosh Khanduala Date: Mon, 16 Dec 2024 16:58:06 +0530 Subject: [PATCH 6/6] fix: bad commit --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index e28c8be..e29e78d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,3 @@ -export cons add = (a: number, b: number) => { +export const add = (a: number, b: number) => { return a + b }