MCPcopy Create free account
hub / github.com/ecomfe/tempad-dev / createConfig

Function createConfig

eslint.shared.ts:14–42  ·  view source on GitHub ↗
(metaUrl: string)

Source from the content-addressed store, hash-verified

12configureVueProject({ scriptLangs: ['ts', 'js'] })
13
14export 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}

Callers 3

eslint.config.tsFile · 0.90
eslint.config.tsFile · 0.90
eslint.config.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected