chore: configure biome for linting and formatting
This commit is contained in:
+57
@@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+7
-1
@@ -6,7 +6,12 @@
|
|||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start",
|
"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": "vitest run",
|
||||||
"test:watch": "vitest",
|
"test:watch": "vitest",
|
||||||
"storybook": "storybook dev -p 6006",
|
"storybook": "storybook dev -p 6006",
|
||||||
@@ -20,6 +25,7 @@
|
|||||||
"tailwind-merge": "^3.5.0"
|
"tailwind-merge": "^3.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@biomejs/biome": "2.4.13",
|
||||||
"@chromatic-com/storybook": "^5.1.2",
|
"@chromatic-com/storybook": "^5.1.2",
|
||||||
"@storybook/addon-a11y": "^10.3.5",
|
"@storybook/addon-a11y": "^10.3.5",
|
||||||
"@storybook/addon-docs": "^10.3.5",
|
"@storybook/addon-docs": "^10.3.5",
|
||||||
|
|||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
/// <reference types="@vitest/browser-playwright" />
|
||||||
@@ -248,6 +248,97 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
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":
|
"@blazediff/core@npm:1.9.1":
|
||||||
version: 1.9.1
|
version: 1.9.1
|
||||||
resolution: "@blazediff/core@npm:1.9.1"
|
resolution: "@blazediff/core@npm:1.9.1"
|
||||||
@@ -5636,6 +5727,7 @@ __metadata:
|
|||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "portfolio@workspace:."
|
resolution: "portfolio@workspace:."
|
||||||
dependencies:
|
dependencies:
|
||||||
|
"@biomejs/biome": "npm:2.4.13"
|
||||||
"@chromatic-com/storybook": "npm:^5.1.2"
|
"@chromatic-com/storybook": "npm:^5.1.2"
|
||||||
"@storybook/addon-a11y": "npm:^10.3.5"
|
"@storybook/addon-a11y": "npm:^10.3.5"
|
||||||
"@storybook/addon-docs": "npm:^10.3.5"
|
"@storybook/addon-docs": "npm:^10.3.5"
|
||||||
|
|||||||
Reference in New Issue
Block a user