import { fileURLToPath } from 'node:url' import { includeIgnoreFile } from '@eslint/compat' import js from '@eslint/js' import tseslint from 'typescript-eslint' import astro from 'eslint-plugin-astro' import globals from 'globals' // Same files Prettier formats, linted with type information const SCRIPTS = ['core/js/**/*.{js,ts}', 'core/.build/**/*.{ts,mts,mjs}', '.build/**/*.{ts,mts}', 'screenshots/.build/**/*.ts', '{preview,docs,screenshots}/**/*.{mjs,mts,ts}', 'shared/**/*.{js,mjs,mts,ts}'] // Config files and SCSS tests that no tsconfig includes, linted without type information const TOOLING = ['*.{js,mjs,cjs}', '.changeset/*.cjs', 'core/*.{mjs,mts}', 'core/scss/tests/**/*.mjs'] const ASTRO = ['{preview,docs,screenshots,shared}/**/*.astro'] // The `