Skip to content

Commit

Permalink
Added biome and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenwf committed Dec 10, 2024
1 parent b0b792a commit 051eade
Show file tree
Hide file tree
Showing 75 changed files with 36,837 additions and 1,393 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ delft
build/hss.js
build/client.d.ts
build/client.js
build
typesense-data
./build
typesense-data
1 change: 0 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"singleQuote": true,
"printWidth": 120,
"trailingComma": "es5"
}
4 changes: 2 additions & 2 deletions __tests__/util/auto-slug.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe("auto slug test", () => {
const prefixParts = [];

for (let i = 0; i < parts[0].length; i++) {
let firstPart = parts[0][i];
const firstPart = parts[0][i];
const allPartsMatch = parts.every((p) => {
return p[i] === firstPart;
});
Expand All @@ -27,7 +27,7 @@ describe("auto slug test", () => {

const suffixParts = [];
for (let i = parts[0].length - 1; i >= 0; i--) {
let lastPart = parts[0][i];
const lastPart = parts[0][i];
const allPartsMatch = parts.every((p) => {
return p[i] === lastPart;
});
Expand Down
33 changes: 33 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/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,
"suspicious": {
"noExplicitAny": "off"
}
}
},
"javascript": {
"formatter": {
"quoteStyle": "double"
}
}
}
Loading

0 comments on commit 051eade

Please sign in to comment.