screen-locker/web/eslint.config.js
Krzysztof kuhy Rudnicki f3bd94f646 web: migrate status page from React to Astro
One static Astro page, vanilla TS poller and renderer,
@kuhyx/web-ui 0.5.0 for tokens only. Same web/dist output.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWYdwRAtMg7ki6TKxuU
2026-11-01 20:12:46 +01:00

30 lines
961 B
JavaScript

import js from '@eslint/js'
import astro from 'eslint-plugin-astro'
import globals from 'globals'
import tseslint from 'typescript-eslint'
import { defineConfig, globalIgnores } from 'eslint/config'
// Deliberately stricter than steam-backlog-enforcer/web, which this was copied
// from: that one extends only `tseslint.configs.recommended` and so runs no
// type-aware rules at all. `strictTypeChecked` needs `projectService`, so the
// tests live inside tsconfig.json's `src` include and are lintable.
export default defineConfig([
globalIgnores(['dist', 'coverage', '.astro']),
{
files: ['**/*.ts'],
extends: [
js.configs.recommended,
tseslint.configs.strictTypeChecked,
tseslint.configs.stylisticTypeChecked,
],
languageOptions: {
globals: globals.browser,
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
...astro.configs.recommended,
])