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