Skip to content

Commit

Permalink
Great code i just added the Biome
Browse files Browse the repository at this point in the history
  • Loading branch information
AIFlowML committed Jan 31, 2025
1 parent 32cb314 commit 5e67fa5
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 2 deletions.
41 changes: 41 additions & 0 deletions packages/plugin-asterai/biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"$schema": "https://biomejs.dev/schemas/1.5.3/schema.json",
"organizeImports": {
"enabled": false
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"correctness": {
"noUnusedVariables": "error"
},
"suspicious": {
"noExplicitAny": "error"
},
"style": {
"useConst": "error",
"useImportType": "off"
}
}
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 4,
"lineWidth": 100
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"trailingCommas": "es5"
}
},
"files": {
"ignore": [
"dist/**/*",
"extra/**/*",
"node_modules/**/*"
]
}
}
9 changes: 7 additions & 2 deletions packages/plugin-asterai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,19 @@
"@types/elliptic": "6.4.18",
"@types/uuid": "10.0.0",
"tsup": "8.3.5",
"vitest": "^1.2.1"
"vitest": "^1.2.1",
"@biomejs/biome": "1.9.4"
},
"scripts": {
"lines": "find . \\( -name '*.cdc' -o -name '*.ts' \\) -not -path '*/node_modules/*' -not -path '*/tests/*' -not -path '*/deps/*' -not -path '*/dist/*' -not -path '*/imports*' | xargs wc -l",
"build": "tsup --format esm --dts",
"dev": "tsup --format esm --dts --watch",
"test": "vitest run",
"test:watch": "vitest"
"test:watch": "vitest",
"lint": "biome lint .",
"lint:fix": "biome check --apply .",
"format": "biome format .",
"format:fix": "biome format --write ."
},
"peerDependencies": {
"whatwg-url": "7.1.0"
Expand Down

0 comments on commit 5e67fa5

Please sign in to comment.