Skip to content

Commit

Permalink
updated biomejs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tpleme committed Sep 25, 2024
1 parent 970261c commit 554b9e4
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
10 changes: 9 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.4.1/schema.json",
"$schema": "https://biomejs.dev/schemas/1.9.2/schema.json",
"organizeImports": {
"enabled": false
},
Expand Down Expand Up @@ -30,6 +30,14 @@
"arrowParentheses": "asNeeded"
}
},
"css": {
"formatter": {
"enabled": false,
"indentStyle": "tab",
"indentWidth": 4,
"lineWidth": 120
}
},
"files": {
"ignore": ["dist", ".vscode", "public"]
}
Expand Down
2 changes: 1 addition & 1 deletion commands/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export default async (cmd, opts, appDir) => {
setMessage(`Setting up ${projectName} - Creating package.json scripts`);
//config scripts on parent package.json
const appsRunScripts = apps.map(el => {
if (el.devEnv) return `"${el.name}": "cd ${el.name} && npm run dev",`;
if (el.devEnv !== "none") return `"${el.name}": "cd ${el.name} && npm run dev",`;
return `"${el.name}": "cd ${el.name} && node index.js",`;
});

Expand Down
10 changes: 9 additions & 1 deletion filesTemplate/biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.4.1/schema.json",
"$schema": "https://biomejs.dev/schemas/1.9.2/schema.json",
"organizeImports": {
"enabled": false
},
Expand Down Expand Up @@ -30,6 +30,14 @@
"arrowParentheses": "asNeeded"
}
},
"css": {
"formatter": {
"enabled": false,
"indentStyle": "tab",
"indentWidth": 4,
"lineWidth": 120
}
},
"files": {
"ignore": ["dist", ".vscode", "public"]
}
Expand Down
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import add from "./commands/add.js";
import { dirname } from "path";
import { fileURLToPath } from "url";
//TODO: add github workflow code-quality
//TODO: add extra tags to index.html
//TODO: add .env + port to server app

const rootDir = dirname(fileURLToPath(import.meta.url));

Expand Down

0 comments on commit 554b9e4

Please sign in to comment.