diff --git a/.devcontainer/devcontainer-lock.json b/.devcontainer/devcontainer-lock.json index 191b3efb..115d3588 100644 --- a/.devcontainer/devcontainer-lock.json +++ b/.devcontainer/devcontainer-lock.json @@ -1,24 +1,24 @@ { - "features": { - "ghcr.io/devcontainers/features/common-utils:2": { - "version": "2.5.9", - "resolved": "ghcr.io/devcontainers/features/common-utils@sha256:cb0c4d3c276f157eed17935747e364178d75fee17f55c4e129966f64633deb3a", - "integrity": "sha256:cb0c4d3c276f157eed17935747e364178d75fee17f55c4e129966f64633deb3a" - }, - "ghcr.io/devcontainers/features/docker-in-docker:3": { - "version": "3.1.0", - "resolved": "ghcr.io/devcontainers/features/docker-in-docker@sha256:62e04ec83d944da4fd2830f68a677d1f5466c0654aea1e4baa30232d16029ac1", - "integrity": "sha256:62e04ec83d944da4fd2830f68a677d1f5466c0654aea1e4baa30232d16029ac1" - }, - "ghcr.io/devcontainers/features/github-cli:1": { - "version": "1.1.0", - "resolved": "ghcr.io/devcontainers/features/github-cli@sha256:d22f50b70ed75339b4eed1ba9ecde3a1791f90e88d37936517e3bace0bbad671", - "integrity": "sha256:d22f50b70ed75339b4eed1ba9ecde3a1791f90e88d37936517e3bace0bbad671" - }, - "ghcr.io/devcontainers/features/node:2": { - "version": "2.1.0", - "resolved": "ghcr.io/devcontainers/features/node@sha256:586c9a6f7dd40bd3ba2cd41e7f2f88dcc31fbe5d1442afcbf07ffbc66b686857", - "integrity": "sha256:586c9a6f7dd40bd3ba2cd41e7f2f88dcc31fbe5d1442afcbf07ffbc66b686857" - } - } + "features": { + "ghcr.io/devcontainers/features/common-utils:2": { + "version": "2.5.9", + "resolved": "ghcr.io/devcontainers/features/common-utils@sha256:cb0c4d3c276f157eed17935747e364178d75fee17f55c4e129966f64633deb3a", + "integrity": "sha256:cb0c4d3c276f157eed17935747e364178d75fee17f55c4e129966f64633deb3a" + }, + "ghcr.io/devcontainers/features/docker-in-docker:4": { + "version": "4.0.0", + "resolved": "ghcr.io/devcontainers/features/docker-in-docker@sha256:4fa87399214366e320d489991769c4f3f461e1ffe461f54eea78a41b34945bb5", + "integrity": "sha256:4fa87399214366e320d489991769c4f3f461e1ffe461f54eea78a41b34945bb5" + }, + "ghcr.io/devcontainers/features/github-cli:1": { + "version": "1.1.0", + "resolved": "ghcr.io/devcontainers/features/github-cli@sha256:d22f50b70ed75339b4eed1ba9ecde3a1791f90e88d37936517e3bace0bbad671", + "integrity": "sha256:d22f50b70ed75339b4eed1ba9ecde3a1791f90e88d37936517e3bace0bbad671" + }, + "ghcr.io/devcontainers/features/node:2": { + "version": "2.1.0", + "resolved": "ghcr.io/devcontainers/features/node@sha256:586c9a6f7dd40bd3ba2cd41e7f2f88dcc31fbe5d1442afcbf07ffbc66b686857", + "integrity": "sha256:586c9a6f7dd40bd3ba2cd41e7f2f88dcc31fbe5d1442afcbf07ffbc66b686857" + } + } } diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 3d1a1458..52512569 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,31 +1,31 @@ { - "name": "ci-github-nodejs", - "image": "mcr.microsoft.com/devcontainers/base:debian", - "features": { - "ghcr.io/devcontainers/features/common-utils:2": { - "configureZshAsDefaultShell": true - }, - "ghcr.io/devcontainers/features/node:2": {}, - "ghcr.io/devcontainers/features/docker-in-docker:3": { - "moby": false - }, - "ghcr.io/devcontainers/features/github-cli:1": { - "extensions": "nektos/gh-act" - } - }, - "remoteEnv": { - "GITHUB_TOKEN": "${localEnv:GITHUB_TOKEN}" - }, - "customizations": { - "vscode": { - "extensions": [ - "eamodio.gitlens", - "github.vscode-github-actions", - "github.copilot", - "github.copilot-chat", - "ms-vscode.makefile-tools", - "biomejs.biome" - ] - } - } + "name": "ci-github-nodejs", + "image": "mcr.microsoft.com/devcontainers/base:debian", + "features": { + "ghcr.io/devcontainers/features/common-utils:2": { + "configureZshAsDefaultShell": true + }, + "ghcr.io/devcontainers/features/node:2": {}, + "ghcr.io/devcontainers/features/docker-in-docker:4": { + "moby": false + }, + "ghcr.io/devcontainers/features/github-cli:1": { + "extensions": "nektos/gh-act" + } + }, + "remoteEnv": { + "GITHUB_TOKEN": "${localEnv:GITHUB_TOKEN}" + }, + "customizations": { + "vscode": { + "extensions": [ + "eamodio.gitlens", + "github.vscode-github-actions", + "github.copilot", + "github.copilot-chat", + "ms-vscode.makefile-tools", + "biomejs.biome" + ] + } + } } diff --git a/.github/linters/.jscpd.json b/.github/linters/.jscpd.json index 59e26bb0..352c5b97 100644 --- a/.github/linters/.jscpd.json +++ b/.github/linters/.jscpd.json @@ -1,8 +1,11 @@ { - "threshold": 5, - "ignore": [ - "**/tests/npm/coverage/**", - "**/node_modules/**", - "**/.pnpm-store/**" - ] + "threshold": 5, + "ignore": [ + "**/node_modules/**", + "**/.pnpm-store/**", + "**/pnpm-workspace.yaml", + "**/coverage/**", + "**/package-lock.json", + "**/dist/**" + ] } diff --git a/biome.json b/biome.json new file mode 100644 index 00000000..825a8d6d --- /dev/null +++ b/biome.json @@ -0,0 +1,13 @@ +{ + "vcs": { + "enabled": true, + "clientKind": "git", + "useIgnoreFile": true + }, + "files": { + "includes": ["**", "!!.devcontainer/devcontainer-lock.json"] + }, + "formatter": { + "indentStyle": "space" + } +} diff --git a/tests/npm/package.json b/tests/npm/package.json index 408ae604..499288b5 100644 --- a/tests/npm/package.json +++ b/tests/npm/package.json @@ -1,25 +1,25 @@ { - "name": "test-for-ci-with-npm", - "version": "0.1.0", - "main": "src/index.js", - "scripts": { - "lint": "echo \"lint test\"", - "lint:ci": "echo \"lint:ci test\"", - "build": "mkdir -p dist && echo \"build test\" > dist/test.txt", - "test:ci": "jest --coverage" - }, - "dependencies": { - "gatsby": "^5.16.1", - "jest": "^30.4.2", - "nx": "^23.0.1", - "prettier": "^3.9.4", - "storybook": "^10.4.6" - }, - "overrides": { - "nx": { - "brace-expansion": "5.0.6", - "follow-redirects": "1.16.0", - "yaml": "2.9.0" - } - } + "name": "test-for-ci-with-npm", + "version": "0.1.0", + "main": "src/index.js", + "scripts": { + "lint": "echo \"lint test\"", + "lint:ci": "echo \"lint:ci test\"", + "build": "mkdir -p dist && echo \"build test\" > dist/test.txt", + "test:ci": "jest --coverage" + }, + "dependencies": { + "gatsby": "^5.16.1", + "jest": "^30.4.2", + "nx": "^23.0.1", + "prettier": "^3.9.4", + "storybook": "^10.4.6" + }, + "overrides": { + "nx": { + "brace-expansion": "5.0.6", + "follow-redirects": "1.16.0", + "yaml": "2.9.0" + } + } } diff --git a/tests/npm/src/index.js b/tests/npm/src/index.js index ca7c9f6d..a7c7a71c 100644 --- a/tests/npm/src/index.js +++ b/tests/npm/src/index.js @@ -1,5 +1,5 @@ function sample() { - return "sample"; + return "sample"; } module.exports = { sample }; diff --git a/tests/npm/src/index.spec.js b/tests/npm/src/index.spec.js index 804d87f3..038296d8 100644 --- a/tests/npm/src/index.spec.js +++ b/tests/npm/src/index.spec.js @@ -1,8 +1,8 @@ const index = require("./index"); describe("sample function", () => { - it('should return "sample"', () => { - const result = index.sample(); - expect(result).toBe("sample"); - }); + it('should return "sample"', () => { + const result = index.sample(); + expect(result).toBe("sample"); + }); }); diff --git a/tests/pnpm-package-manager/package.json b/tests/pnpm-package-manager/package.json index 0e72dc73..74868500 100644 --- a/tests/pnpm-package-manager/package.json +++ b/tests/pnpm-package-manager/package.json @@ -1,17 +1,17 @@ { - "name": "test-for-ci-with-pnpm-in-package-json", - "version": "0.1.0", - "scripts": { - "lint": "echo \"lint test\"", - "build": "mkdir -p dist && echo \"build test\" > dist/test.txt", - "test:ci": "echo \"test CI\"" - }, - "dependencies": { - "gatsby": "^5.16.1", - "jest": "^30.4.2", - "nx": "^23.0.1", - "prettier": "^3.9.4", - "storybook": "^10.4.6" - }, - "packageManager": "pnpm@10.33.0" + "name": "test-for-ci-with-pnpm-in-package-json", + "version": "0.1.0", + "scripts": { + "lint": "echo \"lint test\"", + "build": "mkdir -p dist && echo \"build test\" > dist/test.txt", + "test:ci": "echo \"test CI\"" + }, + "dependencies": { + "gatsby": "^5.16.1", + "jest": "^30.4.2", + "nx": "^23.0.1", + "prettier": "^3.9.4", + "storybook": "^10.4.6" + }, + "packageManager": "pnpm@10.33.0" } diff --git a/tests/pnpm/package.json b/tests/pnpm/package.json index 86bcf2bf..db85fafa 100644 --- a/tests/pnpm/package.json +++ b/tests/pnpm/package.json @@ -1,16 +1,16 @@ { - "name": "test-for-ci-with-pnpm", - "version": "0.1.0", - "scripts": { - "lint": "echo \"lint test\"", - "build": "mkdir -p dist && echo \"build test\" > dist/test.txt", - "test:ci": "echo \"test CI\"" - }, - "dependencies": { - "gatsby": "^5.16.1", - "jest": "^30.4.2", - "nx": "^23.0.1", - "prettier": "^3.9.4", - "storybook": "^10.4.6" - } + "name": "test-for-ci-with-pnpm", + "version": "0.1.0", + "scripts": { + "lint": "echo \"lint test\"", + "build": "mkdir -p dist && echo \"build test\" > dist/test.txt", + "test:ci": "echo \"test CI\"" + }, + "dependencies": { + "gatsby": "^5.16.1", + "jest": "^30.4.2", + "nx": "^23.0.1", + "prettier": "^3.9.4", + "storybook": "^10.4.6" + } } diff --git a/tests/yarn/package.json b/tests/yarn/package.json index 3ad6b9e2..0523e816 100644 --- a/tests/yarn/package.json +++ b/tests/yarn/package.json @@ -1,20 +1,20 @@ { - "name": "test-for-ci-with-yarn", - "version": "0.1.0", - "scripts": { - "lint": "echo \"lint test\"", - "build": "mkdir -p dist && echo \"build test\" > dist/test.txt", - "test:ci": "echo \"test CI\"" - }, - "dependencies": { - "gatsby": "^5.16.1", - "jest": "^30.4.2", - "nx": "^23.0.1", - "prettier": "^3.9.4", - "storybook": "^10.4.6" - }, - "resolutions": { - "nx/brace-expansion": "5.0.6", - "nx/yaml": "2.9.0" - } + "name": "test-for-ci-with-yarn", + "version": "0.1.0", + "scripts": { + "lint": "echo \"lint test\"", + "build": "mkdir -p dist && echo \"build test\" > dist/test.txt", + "test:ci": "echo \"test CI\"" + }, + "dependencies": { + "gatsby": "^5.16.1", + "jest": "^30.4.2", + "nx": "^23.0.1", + "prettier": "^3.9.4", + "storybook": "^10.4.6" + }, + "resolutions": { + "nx/brace-expansion": "5.0.6", + "nx/yaml": "2.9.0" + } }