Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/format.yml → .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Check Formatting
name: Check Formatting and Linting

on:
push:
Expand All @@ -23,4 +23,4 @@ jobs:
cache: npm

- run: npm ci
- run: npm run format:check
- run: npm run ci
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run test
name: Typecheck and Test

on:
push:
Expand Down Expand Up @@ -27,4 +27,5 @@ jobs:
cache: npm

- run: npm ci
- run: npm run typecheck
- run: npm run test:run
4 changes: 0 additions & 4 deletions .prettierignore

This file was deleted.

10 changes: 0 additions & 10 deletions .prettierrc

This file was deleted.

107 changes: 107 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
{
"$schema": "https://biomejs.dev/schemas/2.6.4/schema.json",
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
"files": { "includes": ["**", "!!**/dist"] },
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 100,
"attributePosition": "auto",
"bracketSameLine": false,
"bracketSpacing": true,
"expand": "auto",
"useEditorconfig": true,
"includes": ["**", "!**/node_modules", "!**/__pycache__", "!**/dist", "!**/*.py"]
},
"linter": {
"rules": {
"style": {
"noDescendingSpecificity": "off",
"useConsistentArrayType": {
"level": "error",
"options": {
"syntax": "generic"
}
},
"useNamingConvention": {
"level": "error",
"options": {
"conventions": [
{
"selector": {
"kind": "variable"
},
"formats": ["camelCase"]
},
{
"selector": {
"kind": "class"
},
"formats": ["PascalCase"]
},
{
"selector": {
"kind": "typeAlias"
},
"formats": ["PascalCase"]
},
{
"selector": {
"kind": "enum"
},
"formats": ["PascalCase"]
},
{
"selector": {
"kind": "interface"
},
"match": ".+"
},
{
"match": ".+"
}
]
}
}
},
"suspicious": {
"noAssignInExpressions": "error",
"noDoubleEquals": "error",
"noShadow": "error",
"noShadowRestrictedNames": "error"
},
"complexity": {
"useLiteralKeys": "off"
},
"a11y": {
"noSvgWithoutTitle": "off"
}
}
},
"javascript": {
"formatter": {
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"trailingCommas": "es5",
"semicolons": "always",
"arrowParentheses": "always",
"bracketSameLine": false,
"quoteStyle": "double",
"attributePosition": "auto",
"bracketSpacing": true
}
},
"html": {
"formatter": {
"indentScriptAndStyle": false,
"selfCloseVoidElements": "always"
}
},
"assist": {
"enabled": true,
"actions": { "source": { "organizeImports": "on" } }
}
}
10 changes: 5 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</button>
<ul class="dropdown sub-dropdown" id="themes" hidden>
<li data-theme="default">
<button>Default</button>
<button type="button">Default</button>
</li>
<li data-theme="dark">
<button type="button">Dark</button>
Expand Down Expand Up @@ -305,10 +305,10 @@ <h2>Day Time Remaining</h2>

<section class="card timing">
<div class="timing-buttons-container" id="timing-container">
<button data-target="schoolTime" class="selected">School Time</button>
<button data-target="totalTime">Total Time</button>
<button data-target="absoluteTime">Absolute Time</button>
<button data-target="dayTime">Day Time</button>
<button type="button" data-target="schoolTime" class="selected">School Time</button>
<button type="button" data-target="totalTime">Total Time</button>
<button type="button" data-target="absoluteTime">Absolute Time</button>
<button type="button" data-target="dayTime">Day Time</button>
</div>
</section>

Expand Down
Loading
Loading