Skip to content

Commit

Permalink
chore: lint with biome
Browse files Browse the repository at this point in the history
  • Loading branch information
taskylizard committed Jul 10, 2024
1 parent a69a834 commit 9f39e96
Show file tree
Hide file tree
Showing 4 changed files with 224 additions and 2,814 deletions.
52 changes: 52 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"extends": ["@taskylizard/biome-config"],
"formatter": {
"enabled": false
},
"linter": {
"rules": {
"style": {
"noDefaultExport": "off",
"useNamingConvention": {
"level": "error",
"options": {
"strictCase": false,
"conventions": [
{
"selector": {
"kind": "typeParameter"
},
"formats": ["PascalCase"]
},
{
"selector": {
"kind": "any"
},
"match": "[ab_]|(.{2,})"
},
{
"selector": {
"kind": "objectLiteralMember"
},
"match": ".*"
},
{
"selector": {
"kind": "typeMember"
},
"match": ".*"
},
{
"selector": {
"kind": "variable"
},
"match": ".*"
}
]
}
}
}
}
}
}
7 changes: 0 additions & 7 deletions eslint.config.js

This file was deleted.

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fmhy",
"type": "module",
"packageManager": "pnpm@9.0.4",
"packageManager": "pnpm@9.4.0",
"scripts": {
"docs:dev": "vitepress dev",
"docs:build": "vitepress build",
Expand All @@ -12,7 +12,9 @@
"api:preview": "node .output/server/index.mjs",
"og:dev": "x-satori -t ./.vitepress/hooks/Template.vue -c ./.vitepress/hooks/satoriConfig.ts --dev",
"format": "prettier -w --cache --check .",
"lint": "eslint .vitepress -f pretty --cache",
"lint": "biome lint .",
"lint:fix": "biome lint . --write",
"lint:fix:unsafe": "biome lint . --write --unsafe",
"postinstall": "nitropack prepare"
},
"dependencies": {
Expand All @@ -33,9 +35,11 @@
"zod": "^3.22.4"
},
"devDependencies": {
"@biomejs/biome": "^1.8.3",
"@iconify-json/carbon": "^1.1.28",
"@iconify-json/heroicons-solid": "^1.1.11",
"@iconify-json/twemoji": "^1.1.15",
"@taskylizard/biome-config": "^1.0.1",
"@types/fs-extra": "^11.0.4",
"@types/node": "^20.11.15",
"@types/nprogress": "^0.2.3",
Expand Down
Loading

0 comments on commit 9f39e96

Please sign in to comment.