mirror of
https://github.com/Donkie/Spoolman.git
synced 2026-10-22 01:52:17 -05:00
client_v2 has matured, so enforce its checks like the old client: - Add ESLint (typescript-eslint + eslint-plugin-svelte) with a flat config; `lint` now runs prettier --check and eslint. - Add a "Client v2" group to lefthook pre-commit and ci: eslint, prettier, and svelte-check type checking (svelte-kit sync first). - Exclude generated paraglide output from prettier. Fix the linting warnings this surfaced: drop dead vars and an unused svelte-ignore, mark intentional reactive reads with `void`, remove a useless children snippet, and clean up useless string-literal mustaches. Disable svelte/no-navigation-without-resolve (base-path resolution is centralized in params.ts helpers, so the rule only false-positives and wrapping call sites would double-apply the base path). Keep svelte/prefer-svelte-reactivity on with per-line disables at the transient-local Set/Map sites. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
41 lines
659 B
JSON
41 lines
659 B
JSON
{
|
|
"$schema": "https://inlang.com/schema/project-settings",
|
|
"modules": [
|
|
"https://cdn.jsdelivr.net/npm/@inlang/plugin-message-format@4/dist/index.js",
|
|
"https://cdn.jsdelivr.net/npm/@inlang/plugin-m-function-matcher@2/dist/index.js",
|
|
"https://cdn.jsdelivr.net/npm/@inlang/plugin-i18next@latest/dist/index.js"
|
|
],
|
|
"plugin.inlang.i18next": {
|
|
"pathPattern": "./locales/{locale}/common.json"
|
|
},
|
|
"baseLocale": "en",
|
|
"locales": [
|
|
"en",
|
|
"sv",
|
|
"de",
|
|
"es",
|
|
"zh",
|
|
"zh-Hant",
|
|
"pl",
|
|
"ru",
|
|
"cs",
|
|
"nb-NO",
|
|
"nl",
|
|
"fr",
|
|
"hu",
|
|
"it",
|
|
"uk",
|
|
"el",
|
|
"da",
|
|
"pt",
|
|
"fa",
|
|
"ro",
|
|
"ja",
|
|
"pt-BR",
|
|
"ta",
|
|
"th",
|
|
"lt",
|
|
"tr"
|
|
]
|
|
}
|