Files
sexy/eslint.config.js
Sebastian Krüger 239128bf5e
All checks were successful
Build and Push Backend Image / build (push) Successful in 17s
Build and Push Frontend Image / build (push) Successful in 4m34s
fix: buttplug lint errors
2026-03-08 13:28:59 +01:00

58 lines
1.4 KiB
JavaScript

import js from "@eslint/js";
import ts from "typescript-eslint";
import svelte from "eslint-plugin-svelte";
import prettier from "eslint-config-prettier";
import globals from "globals";
export default ts.config(
js.configs.recommended,
...ts.configs.recommended,
...svelte.configs["flat/recommended"],
prettier,
...svelte.configs["flat/prettier"],
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
},
},
{
files: ["**/*.svelte"],
languageOptions: {
parserOptions: {
parser: ts.parser,
},
},
},
{
rules: {
// Allow unused vars prefixed with _ (common pattern for intentional ignores)
"@typescript-eslint/no-unused-vars": [
"error",
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
],
// Enforce consistent type imports
"@typescript-eslint/consistent-type-imports": [
"error",
{ prefer: "type-imports", fixStyle: "inline-type-imports" },
],
// This rule is meant for onNavigate() callbacks only; standard SvelteKit href/goto is fine
"svelte/no-navigation-without-resolve": "off",
// {@html} is used intentionally for trusted content (e.g. legal page)
"svelte/no-at-html-tags": "warn",
},
},
{
ignores: [
"**/build/",
"**/.svelte-kit/",
"**/dist/",
"**/node_modules/",
"**/migrations/",
"**/wasm/",
],
},
);