{"version":3,"file":"vue.mjs","names":[],"sources":["../src/configs/vue/module.ts"],"sourcesContent":["/*\n * Copyright (c) 2026.\n * Author Peter Placzek (tada5hi)\n * For the full copyright and license information,\n * view the LICENSE file that was distributed with this source code.\n */\n\nimport type { Linter } from 'eslint';\nimport { ensurePackages } from '../../utils.ts';\nimport type { VueOptions } from './types.ts';\n\nexport async function vue(options: VueOptions = {}): Promise<Linter.Config[]> {\n    await ensurePackages(['eslint-plugin-vue']);\n\n    const vuePlugin = await import('eslint-plugin-vue');\n\n    const configs: Linter.Config[] = [\n        ...vuePlugin.default.configs['flat/recommended'] as Linter.Config[],\n    ];\n\n    if (options.typescript) {\n        await ensurePackages(['typescript-eslint']);\n        const tseslint = await import('typescript-eslint');\n\n        configs.push({\n            files: ['**/*.vue'],\n            languageOptions: {\n                parserOptions: {\n                    parser: tseslint.default.parser,\n                    extraFileExtensions: ['.vue'],\n                },\n            },\n        });\n    }\n\n    configs.push({\n        rules: {\n            'vue/multi-word-component-names': 'off',\n            'vue/html-indent': ['error', 4, {\n                attribute: 1,\n                baseIndent: 1,\n                closeBracket: 0,\n                alignAttributesVertically: true,\n                ignores: [],\n            }],\n            'vue/no-template-shadow': 'off',\n            'vue/require-default-prop': 'off',\n        },\n    });\n\n    return configs;\n}\n"],"mappings":";;AAWA,eAAsB,IAAI,UAAsB,CAAC,GAA6B;CAC1E,MAAM,eAAe,CAAC,mBAAmB,CAAC;CAI1C,MAAM,UAA2B,CAC7B,IAAG,MAHiB,OAAO,qBAAA,CAGd,QAAQ,QAAQ,mBACjC;CAEA,IAAI,QAAQ,YAAY;EACpB,MAAM,eAAe,CAAC,mBAAmB,CAAC;EAC1C,MAAM,WAAW,MAAM,OAAO;EAE9B,QAAQ,KAAK;GACT,OAAO,CAAC,UAAU;GAClB,iBAAiB,EACb,eAAe;IACX,QAAQ,SAAS,QAAQ;IACzB,qBAAqB,CAAC,MAAM;GAChC,EACJ;EACJ,CAAC;CACL;CAEA,QAAQ,KAAK,EACT,OAAO;EACH,kCAAkC;EAClC,mBAAmB;GAAC;GAAS;GAAG;IAC5B,WAAW;IACX,YAAY;IACZ,cAAc;IACd,2BAA2B;IAC3B,SAAS,CAAC;GACd;EAAC;EACD,0BAA0B;EAC1B,4BAA4B;CAChC,EACJ,CAAC;CAED,OAAO;AACX"}