Skip to content

Commit

Permalink
style: fix style by lint
Browse files Browse the repository at this point in the history
  • Loading branch information
SARDONYX-sard committed Jul 24, 2024
1 parent 7120ef5 commit 04cde50
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug-report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ body:
attributes:
label: Version
description: What version of our software are you running?
placeholder: "Example: 0.1.0"
placeholder: 'Example: 0.1.0'
validations:
required: true

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions biome.jsonc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.7.3/schema.json",
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"extends": [],
"files": {
"ignore": ["out", ".next", "node_modules", "target", "./test"],
Expand Down Expand Up @@ -33,7 +33,7 @@
"formatter": {
"quoteStyle": "single",
"jsxQuoteStyle": "single",
"trailingComma": "all",
"trailingCommas": "all",
"semicolons": "always",
"arrowParentheses": "always"
},
Expand Down
2 changes: 1 addition & 1 deletion crates/bluetooth/src/categories/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pub mod sub_category;
pub mod category;
pub mod sub_category;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"test:all": "npm test && npm run test:back",
"fmt": "biome format ./ && prettier --cache --write \"**/*.+(yml|yaml)\" --ignore-path ./.gitignore && cargo fmt --all",
"lint": "next lint ./gui/frontend && biome lint ./ && cargo clippy --workspace",
"lint:fix": "npm run fmt && next lint ./gui/frontend --fix && biome check --apply ./ && cargo clippy --workspace --fix --allow-staged --allow-dirty",
"lint:fix": "npm run fmt && next lint ./gui/frontend --fix && biome check --write ./ && cargo clippy --workspace --fix --allow-staged --allow-dirty",
"tauri": "tauri"
},
"dependencies": {
Expand Down
8 changes: 8 additions & 0 deletions tools/version_up.js → tools/version_up.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ const defaultVersion = '2'; // 2: Bump up `minor` version is default
const useGpg = true; // Verified commit with GPG key.

// import modules
// biome-ignore lint/correctness/noNodejsModules: <explanation>
const fs = require('node:fs');
// biome-ignore lint/correctness/noNodejsModules: <explanation>
const path = require('node:path');
// biome-ignore lint/correctness/noNodejsModules: <explanation>
const { execSync } = require('node:child_process');
// paths
const basePath = path.resolve(__dirname, '..');
Expand All @@ -34,8 +37,11 @@ const packageJson = require(packageJsonPath);
const currentVersion = packageJson.version;

if (isDebug) {
// biome-ignore lint/suspicious/noConsoleLog: <explanation>
console.log(packageJsonPath);
// biome-ignore lint/suspicious/noConsoleLog: <explanation>
console.log(cargoTomlPath);
// biome-ignore lint/suspicious/noConsoleLog: <explanation>
console.log(issueTemplatePath);
}
main();
Expand All @@ -49,6 +55,7 @@ function main() {
updateIssueTemplate(newVersion);
gitCommitAndTag(currentVersion, newVersion);

// biome-ignore lint/suspicious/noConsoleLog: <explanation>
console.log(`Updated version: ${currentVersion} => ${newVersion}`);
}

Expand Down Expand Up @@ -135,6 +142,7 @@ function gitCommitAndTag(currentVersion, newVersion) {
// Create Git tag
execSync(`git tag ${newVersion} ${tagFlags} -m "Version ${newVersion}"`);

// biome-ignore lint/suspicious/noConsoleLog: <explanation>
console.log('Git commit and tag created successfully.');
} catch (error) {
throw new Error(`Failed to create Git commit and tag: ${error}`);
Expand Down

0 comments on commit 04cde50

Please sign in to comment.