Skip to content

Commit f66ac6f

Browse files
committed
chore: skip locale JSON in lint-staged oxfmt
oxfmt already ignores src/locales JSON, so passing those paths to oxfmt --write fails the hook on locale-only commits.
1 parent a7196d6 commit f66ac6f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lint-staged.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ export default function lintStaged(stagedFiles: string[]) {
1010
const formattableFiles = relativePaths.filter(
1111
(fileName) =>
1212
/\.(js|ts|tsx|vue|mts|json|yaml|md)$/.test(fileName) &&
13-
!fileName.endsWith('pnpm-lock.yaml')
13+
!fileName.endsWith('pnpm-lock.yaml') &&
14+
!fileName.startsWith('src/locales/')
1415
)
1516
const codeFiles = relativePaths.filter((fileName) =>
1617
/\.(js|ts|tsx|vue|mts)$/.test(fileName)

0 commit comments

Comments
 (0)