Skip to content

Commit

Permalink
Install biome for linting and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
htunnicliff committed Oct 11, 2024
1 parent 0e5adf2 commit c28db26
Show file tree
Hide file tree
Showing 4 changed files with 206 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["biomejs.biome"]
}
34 changes: 34 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.3/schema.json",
"vcs": {
"enabled": false,
"clientKind": "git",
"useIgnoreFile": false
},
"files": {
"ignoreUnknown": false,
"ignore": []
},
"formatter": {
"enabled": true,
"indentStyle": "space"
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"style": {
"noNonNullAssertion": "off"
}
}
},
"javascript": {
"formatter": {
"quoteStyle": "double",
"trailingCommas": "none"
}
}
}
165 changes: 165 additions & 0 deletions package-lock.json

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

12 changes: 4 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@
"types": "./dist/index.d.ts",
"exports": "./dist/index.js",
"sideEffects": false,
"files": [
"dist",
"src",
"package.json",
"LICENSE.txt",
"README.md"
],
"files": ["dist", "src", "package.json", "LICENSE.txt", "README.md"],
"license": "MIT",
"description": "A JMAP client library for Node.js and the browser.",
"repository": {
Expand All @@ -25,9 +19,11 @@
},
"scripts": {
"preversion": "tsup",
"build": "tsup"
"build": "tsup",
"check": "biome check --write ."
},
"devDependencies": {
"@biomejs/biome": "1.9.3",
"@types/node": "20.8.4",
"tsup": "7.2.0",
"tsx": "3.13.0",
Expand Down

0 comments on commit c28db26

Please sign in to comment.