// ESLint flat config — repo root (M1) // Scoped to root-level scripts only. Nested workspace packages manage // their own lint config (or inherit this in a later milestone). import js from "@eslint/js"; import globals from "globals"; export default [ // Apply ESLint recommended rules to root-level JS/MJS scripts { files: ["scripts/**/*.mjs", "scripts/**/*.js"], ...js.configs.recommended, languageOptions: { globals: { ...globals.node, }, }, }, // Global ignores — never lint generated directories or node_modules { ignores: [ "**/node_modules/**", // Generated agent-variant script bundles (excluded per M1 workspace policy) "skills/atlassian/codex/scripts/**", "skills/atlassian/claude-code/scripts/**", "skills/atlassian/cursor/scripts/**", "skills/atlassian/opencode/scripts/**", "skills/atlassian/pi/scripts/**", "skills/web-automation/claude-code/scripts/**", "skills/web-automation/cursor/scripts/**", "skills/web-automation/opencode/scripts/**", "skills/web-automation/pi/scripts/**", "pi-package/**", ], }, ];