import { dirname } from "node:path"; import { fileURLToPath } from "node:url"; import js from "@eslint/js"; import tseslint from "typescript-eslint"; const tsconfigRootDir = dirname(fileURLToPath(import.meta.url)); export default tseslint.config( { ignores: [ "node_modules/**", "vendor/**", "dist/**", "app/types/wrnexus.generated.d.ts", "app/types/wrnexus.plugins.generated.d.ts", ".wrnexus/**", "**/.wrnexus/**", "mobile/android/**", "mobile/ios/**", ], }, { languageOptions: { parserOptions: { tsconfigRootDir, }, }, }, js.configs.recommended, ...tseslint.configs.recommended, { files: ["**/*.{ts,tsx}"], rules: { "no-undef": "off", "no-console": "off", "@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/no-unused-vars": [ "warn", { argsIgnorePattern: "^_", varsIgnorePattern: "^_", caughtErrorsIgnorePattern: "^_", }, ], }, }, );