(metaUrl: string)
| 12 | configureVueProject({ scriptLangs: ['ts', 'js'] }) |
| 13 | |
| 14 | export function createConfig(metaUrl: string) { |
| 15 | const tsconfigRootDir = fileURLToPath(new URL('.', metaUrl)) |
| 16 | |
| 17 | return defineConfigWithVueTs( |
| 18 | gitignore(), |
| 19 | { |
| 20 | name: 'app/files-to-lint', |
| 21 | files: ['**/*.{ts,tsx,js,jsx,mts,cts,mjs,cjs,vue}'] |
| 22 | }, |
| 23 | js.configs.recommended, |
| 24 | pluginVue.configs['flat/essential'], |
| 25 | vueTsConfigs.recommended, |
| 26 | { |
| 27 | languageOptions: { |
| 28 | parserOptions: { |
| 29 | tsconfigRootDir |
| 30 | } |
| 31 | }, |
| 32 | plugins: { |
| 33 | perfectionist |
| 34 | }, |
| 35 | rules: { |
| 36 | 'vue/multi-word-component-names': 'off', |
| 37 | '@typescript-eslint/no-unused-vars': ['error', { ignoreRestSiblings: true }], |
| 38 | 'perfectionist/sort-imports': 'error' |
| 39 | } |
| 40 | } |
| 41 | ) |
| 42 | } |
no outgoing calls
no test coverage detected