mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-12-22 01:03:20 +01:00
biome tweaks
This commit is contained in:
parent
7eb0075e6f
commit
2a47440972
16
biome.json
16
biome.json
@ -1,12 +1,17 @@
|
||||
{
|
||||
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
|
||||
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
|
||||
"vcs": {
|
||||
"enabled": true,
|
||||
"clientKind": "git",
|
||||
"useIgnoreFile": true
|
||||
},
|
||||
"linter": { "enabled": true, "rules": { "recommended": true } },
|
||||
"organizeImports": { "enabled": true },
|
||||
"formatter": {
|
||||
"enabled": true,
|
||||
"indentStyle": "space",
|
||||
"indentWidth": 2
|
||||
},
|
||||
"linter": { "enabled": true, "rules": { "recommended": true } },
|
||||
"organizeImports": { "enabled": true },
|
||||
"javascript": {
|
||||
"formatter": {
|
||||
"jsxQuoteStyle": "double",
|
||||
@ -19,5 +24,10 @@
|
||||
"quoteStyle": "single",
|
||||
"attributePosition": "auto"
|
||||
}
|
||||
},
|
||||
"css": {
|
||||
"linter": { "enabled": true },
|
||||
"formatter": { "enabled": true, "quoteStyle": "single" },
|
||||
"parser": { "cssModules": true }
|
||||
}
|
||||
}
|
||||
|
@ -13,7 +13,7 @@
|
||||
"start": "next start",
|
||||
"export": "npm run prebuild && next export",
|
||||
"typecheck": "tsc",
|
||||
"lint": "biome check --write src/**/*",
|
||||
"lint": "biome check --write .",
|
||||
"jest": "jest --coverage -c tests/jest.config.js",
|
||||
"test": "NODE_ENV=test npm run jest",
|
||||
"new": "node --import tsx/esm ./scripts/new.ts",
|
||||
|
@ -8,6 +8,8 @@ self.addEventListener('activate', (e) => {
|
||||
.unregister()
|
||||
.then(() => self.clients.matchAll())
|
||||
.then((clients) => {
|
||||
clients.forEach((client) => client.navigate(client.url))
|
||||
for (const client of clients) {
|
||||
client.navigate(client.url)
|
||||
}
|
||||
})
|
||||
})
|
||||
|
@ -1,5 +1,5 @@
|
||||
import fs from 'fs'
|
||||
import path from 'path'
|
||||
import fs from 'node:fs'
|
||||
import path from 'node:path'
|
||||
import sharp from 'sharp'
|
||||
import ico from 'sharp-ico'
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env ts-node
|
||||
import fs from 'fs'
|
||||
import path from 'path'
|
||||
import fs from 'node:fs'
|
||||
import path from 'node:path'
|
||||
import ora from 'ora'
|
||||
import slugify from 'slugify'
|
||||
|
||||
|
@ -10,8 +10,7 @@
|
||||
display: block;
|
||||
width: auto;
|
||||
height: 300px;
|
||||
box-shadow:
|
||||
0 3px 5px rgba(var(--brand-main), 0.15),
|
||||
0 5px 16px rgba(var(--brand-main), 0.15);
|
||||
box-shadow: 0 3px 5px rgba(var(--brand-main), 0.15), 0 5px 16px
|
||||
rgba(var(--brand-main), 0.15);
|
||||
margin: calc(var(--spacer) / 4) auto calc(var(--spacer) / 2) auto;
|
||||
}
|
||||
|
@ -7,8 +7,8 @@
|
||||
.projects {
|
||||
gap: calc(var(--spacer) * 3);
|
||||
grid-template-columns: repeat(
|
||||
auto-fill,
|
||||
minmax(min-content, calc(50% - (var(--spacer) * 1.5)))
|
||||
);
|
||||
auto-fill,
|
||||
minmax(min-content, calc(50% - (var(--spacer) * 1.5)))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user