Skip to content

Commit

Permalink
Replace pre-commit Biome hook (#3670)
Browse files Browse the repository at this point in the history
uses the built-in hook they provide
  • Loading branch information
benhammondmusic authored Sep 16, 2024
1 parent 53427ef commit 491d311
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
9 changes: 4 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,12 @@ repos:
"-sn", # Don't display the score
]
# LINT/FORMAT JS/TS/JSON WITH BIOME
- repo: local
- repo: https://github.com/biomejs/pre-commit
rev: v0.4.0
hooks:
- id: local-biome-check
- id: biome-check
name: 🦕 ts/json format + lint with biome
entry: npx biome check --apply --files-ignore-unknown=true --no-errors-on-unmatched --changed
language: system
types: [text]
additional_dependencies: ["@biomejs/biome"]
# WARN IF TOO MANY FILES IN ONE COMMIT
- repo: local
hooks:
Expand Down
1 change: 1 addition & 0 deletions frontend/src/data/query/Breakdowns.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Fips } from '../utils/Fips'
import type BreakdownFilter from './BreakdownFilter'
//

export type TimeView = 'current' | 'historical'

Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/News/SinglePost.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function SinglePost() {
REACT_QUERY_OPTIONS,
)

// on page load, get prev,full, next article based on fullArticle URL slug
// on page load, get prev, full, next article based on fullArticle URL slug
useEffect(() => {
if (data?.data) {
const fullArticleIndex = data.data.findIndex(
Expand Down Expand Up @@ -349,4 +349,4 @@ export default function SinglePost() {
</div>
</div>
)
}
}

0 comments on commit 491d311

Please sign in to comment.