3c6df95a86
Add TypeScript project references, update ESLint configs to support ESM modules, and introduce brand semantic color tokens across the web app. Add comprehensive documentation for architecture, API reference, development setup, and user guide.
39 lines
909 B
JavaScript
39 lines
909 B
JavaScript
import js from "@eslint/js";
|
|
import ts from "typescript-eslint";
|
|
import path from "path";
|
|
import { fileURLToPath } from "url";
|
|
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
|
|
const runtimeGlobals = {
|
|
AbortSignal: "readonly",
|
|
Blob: "readonly",
|
|
BodyInit: "readonly",
|
|
console: "readonly",
|
|
Error: "readonly",
|
|
fetch: "readonly",
|
|
FormData: "readonly",
|
|
Headers: "readonly",
|
|
Request: "readonly",
|
|
Response: "readonly",
|
|
URL: "readonly",
|
|
};
|
|
|
|
export default ts.config(
|
|
{
|
|
ignores: ["**/dist/**", "**/.next/**", "**/node_modules/**", "**/coverage/**"],
|
|
},
|
|
{
|
|
extends: [js.configs.recommended, ...ts.configs.recommended],
|
|
files: ["packages/**/*.{ts,tsx}"],
|
|
languageOptions: {
|
|
ecmaVersion: "latest",
|
|
globals: runtimeGlobals,
|
|
parserOptions: {
|
|
sourceType: "module",
|
|
tsconfigRootDir: path.resolve(__dirname),
|
|
},
|
|
},
|
|
},
|
|
);
|