Skip to content

Commit

Permalink
feat(package.json): add Biome and related development scripts
Browse files Browse the repository at this point in the history
This commit adds the @biomejs/biome as a devDependency and updates the package.json to include format scripts. A new biome.json file is introduced, providing configurations for file formatting. Lastly, the pnpm-lock.yaml file is generated with relevant package-lock information.
  • Loading branch information
suddenlyGiovanni committed Apr 4, 2024
1 parent a60b094 commit 0e8b30a
Show file tree
Hide file tree
Showing 3 changed files with 138 additions and 14 deletions.
17 changes: 17 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://biomejs.dev/schemas/1.6.4/schema.json",
"files": {
"ignore": ["node_modules", "./~"],
"include": ["./resume.json", "./schema.json"]
},
"json": {
"formatter": {
"enabled": true,
"indentStyle": "tab",
"lineEnding": "lf",
"trailingCommas": "none",
"indentWidth": 2,
"lineWidth": 100
}
}
}
35 changes: 21 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
{
"name": "@suddenly-giovanni/resume",
"version": "0.0.1",
"private": true,
"type": "module",
"exports": {
"./resume.json": "./resume.json"
},
"author": {
"name": "Giovanni Ravalico",
"email": "[email protected]",
"url": "https://wwww.suddenlygiovanni.dev"
},
"license": "UNLICENSED",
"packageManager": "[email protected]"
"name": "@suddenly-giovanni/resume",
"version": "0.0.1",
"private": true,
"type": "module",
"exports": {
"./resume.json": "./resume.json"
},
"author": {
"name": "Giovanni Ravalico",
"email": "[email protected]",
"url": "https://wwww.suddenlygiovanni.dev"
},
"scripts": {
"format": "biome format .",
"format:write": "pnpm format --write"
},
"license": "UNLICENSED",
"devDependencies": {
"@biomejs/biome": "1.6.4"
},
"packageManager": "[email protected]"
}
100 changes: 100 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0e8b30a

Please sign in to comment.