Skip to content

Commit

Permalink
fix: windows sep, fixes #741
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Oct 5, 2024
1 parent 206c59a commit 9b1de77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/eslint/eslint-check-i18n-json.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// @ts-check
/** @type {import("eslint").ESLint.Plugin} */
import fs from "node:fs"
import path from "node:path"

export default {
rules: {
Expand Down Expand Up @@ -80,7 +81,7 @@ export default {

if (!filename.endsWith(".json")) return

const parts = filename.split("/")
const parts = filename.split(path.sep)
const lang = parts.at(-1).split(".")[0]
const namespace = parts.at(-2)

Expand Down

0 comments on commit 9b1de77

Please sign in to comment.