diff --git a/biome.json b/biome.json new file mode 100644 index 0000000..79ec14a --- /dev/null +++ b/biome.json @@ -0,0 +1,57 @@ +{ + "$schema": "https://biomejs.dev/schemas/2.4.13/schema.json", + "vcs": { + "enabled": true, + "clientKind": "git", + "useIgnoreFile": true + }, + "files": { + "ignoreUnknown": false, + "includes": ["src/**/*", "app/**/*"] + }, + "formatter": { + "enabled": true, + "indentStyle": "space", + "indentWidth": 2, + "lineWidth": 120 + }, + "linter": { + "enabled": true, + "rules": { + "recommended": true, + "correctness": { + "noUnusedVariables": "warn" + }, + "style": { + "noNonNullAssertion": "warn", + "useBlockStatements": "error" + } + } + }, + "javascript": { + "formatter": { + "quoteStyle": "single", + "jsxQuoteStyle": "double", + "semicolons": "always", + "trailingCommas": "all" + } + }, + "json": { + "formatter": { + "trailingCommas": "none" + } + }, + "css": { + "parser": { + "tailwindDirectives": true + } + }, + "assist": { + "enabled": true, + "actions": { + "source": { + "organizeImports": "on" + } + } + } +} diff --git a/package.json b/package.json index 3724585..e246627 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,12 @@ "dev": "next dev", "build": "next build", "start": "next start", - "lint": "eslint", + "lint": "biome lint --write .", + "format": "biome format --write .", + "check": "biome check --write .", + "lint:ci": "biome lint .", + "format:ci": "biome format .", + "check:ci": "biome check .", "test": "vitest run", "test:watch": "vitest", "storybook": "storybook dev -p 6006", @@ -20,6 +25,7 @@ "tailwind-merge": "^3.5.0" }, "devDependencies": { + "@biomejs/biome": "2.4.13", "@chromatic-com/storybook": "^5.1.2", "@storybook/addon-a11y": "^10.3.5", "@storybook/addon-docs": "^10.3.5", diff --git a/vitest.shims.d.ts b/vitest.shims.d.ts new file mode 100644 index 0000000..7782f28 --- /dev/null +++ b/vitest.shims.d.ts @@ -0,0 +1 @@ +/// \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 3d91ea8..3d8bb68 100644 --- a/yarn.lock +++ b/yarn.lock @@ -248,6 +248,97 @@ __metadata: languageName: node linkType: hard +"@biomejs/biome@npm:2.4.13": + version: 2.4.13 + resolution: "@biomejs/biome@npm:2.4.13" + dependencies: + "@biomejs/cli-darwin-arm64": "npm:2.4.13" + "@biomejs/cli-darwin-x64": "npm:2.4.13" + "@biomejs/cli-linux-arm64": "npm:2.4.13" + "@biomejs/cli-linux-arm64-musl": "npm:2.4.13" + "@biomejs/cli-linux-x64": "npm:2.4.13" + "@biomejs/cli-linux-x64-musl": "npm:2.4.13" + "@biomejs/cli-win32-arm64": "npm:2.4.13" + "@biomejs/cli-win32-x64": "npm:2.4.13" + dependenciesMeta: + "@biomejs/cli-darwin-arm64": + optional: true + "@biomejs/cli-darwin-x64": + optional: true + "@biomejs/cli-linux-arm64": + optional: true + "@biomejs/cli-linux-arm64-musl": + optional: true + "@biomejs/cli-linux-x64": + optional: true + "@biomejs/cli-linux-x64-musl": + optional: true + "@biomejs/cli-win32-arm64": + optional: true + "@biomejs/cli-win32-x64": + optional: true + bin: + biome: bin/biome + checksum: 10c0/a8c09d7c05d834243a76704e31bda05346d2a06a75e90e6de2ef0d4edc33bd7d382b380bad9275ddd379e9e44ceaea9907a9c0de2156859b36b057c155f20a0e + languageName: node + linkType: hard + +"@biomejs/cli-darwin-arm64@npm:2.4.13": + version: 2.4.13 + resolution: "@biomejs/cli-darwin-arm64@npm:2.4.13" + conditions: os=darwin & cpu=arm64 + languageName: node + linkType: hard + +"@biomejs/cli-darwin-x64@npm:2.4.13": + version: 2.4.13 + resolution: "@biomejs/cli-darwin-x64@npm:2.4.13" + conditions: os=darwin & cpu=x64 + languageName: node + linkType: hard + +"@biomejs/cli-linux-arm64-musl@npm:2.4.13": + version: 2.4.13 + resolution: "@biomejs/cli-linux-arm64-musl@npm:2.4.13" + conditions: os=linux & cpu=arm64 & libc=musl + languageName: node + linkType: hard + +"@biomejs/cli-linux-arm64@npm:2.4.13": + version: 2.4.13 + resolution: "@biomejs/cli-linux-arm64@npm:2.4.13" + conditions: os=linux & cpu=arm64 & libc=glibc + languageName: node + linkType: hard + +"@biomejs/cli-linux-x64-musl@npm:2.4.13": + version: 2.4.13 + resolution: "@biomejs/cli-linux-x64-musl@npm:2.4.13" + conditions: os=linux & cpu=x64 & libc=musl + languageName: node + linkType: hard + +"@biomejs/cli-linux-x64@npm:2.4.13": + version: 2.4.13 + resolution: "@biomejs/cli-linux-x64@npm:2.4.13" + conditions: os=linux & cpu=x64 & libc=glibc + languageName: node + linkType: hard + +"@biomejs/cli-win32-arm64@npm:2.4.13": + version: 2.4.13 + resolution: "@biomejs/cli-win32-arm64@npm:2.4.13" + conditions: os=win32 & cpu=arm64 + languageName: node + linkType: hard + +"@biomejs/cli-win32-x64@npm:2.4.13": + version: 2.4.13 + resolution: "@biomejs/cli-win32-x64@npm:2.4.13" + conditions: os=win32 & cpu=x64 + languageName: node + linkType: hard + "@blazediff/core@npm:1.9.1": version: 1.9.1 resolution: "@blazediff/core@npm:1.9.1" @@ -5636,6 +5727,7 @@ __metadata: version: 0.0.0-use.local resolution: "portfolio@workspace:." dependencies: + "@biomejs/biome": "npm:2.4.13" "@chromatic-com/storybook": "npm:^5.1.2" "@storybook/addon-a11y": "npm:^10.3.5" "@storybook/addon-docs": "npm:^10.3.5"