Something went wrong. Try again.
A warm, tech-dystopian color scheme inspired by corrupted hardware and failing systems. digitalrust.katsuricata.com
theme color-scheme color-theme warm color
Something went wrong. Try again.
DigitalRust eslint.config.js
1.4 kB · 44 lines
JavaScript
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445// SPDX-FileCopyrightText: 2025-2026 Kat Suricata <https://KatSuricata.com/>// SPDX-License-Identifier: (CC-BY-4.0+ OR Apache-2.0+)
import prettier from 'eslint-config-prettier';import path from 'node:path';import js from '@eslint/js';import svelte from 'eslint-plugin-svelte';import { defineConfig, includeIgnoreFile } from 'eslint/config';import globals from 'globals';import ts from 'typescript-eslint';
const gitignorePath = path.resolve(import.meta.dirname, '.gitignore');
export default defineConfig( includeIgnoreFile(gitignorePath), js.configs.recommended, ts.configs.recommended, svelte.configs.recommended, prettier, svelte.configs.prettier, { languageOptions: { globals: { ...globals.browser, ...globals.node } }, rules: { // typescript-eslint strongly recommends that you do not use the no-undef lint rule on TypeScript projects. // See: https://typescript-eslint.io/troubleshooting/faqs/eslint/#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors 'no-undef': 'off' } }, { files: ['**/*.svelte', '**/*.svelte.ts', '**/*.svelte.js'], languageOptions: { parserOptions: { projectService: true, extraFileExtensions: ['.svelte'], parser: ts.parser } } }, { // Override or add rule settings here, such as: // 'svelte/button-has-type': 'error' rules: {} });