-
Notifications
You must be signed in to change notification settings - Fork 172
Expand file tree
/
Copy patheslint.config.js
More file actions
31 lines (30 loc) · 1.05 KB
/
eslint.config.js
File metadata and controls
31 lines (30 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import pluginVue from 'eslint-plugin-vue'
import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript'
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'
export default defineConfigWithVueTs(
{
name: 'app/files-to-lint',
files: ['**/*.{ts,mts,tsx,vue}'],
},
{
name: 'app/files-to-ignore',
ignores: [
'dist/**',
'src-tauri/target/**',
'src-tauri/gen/**',
'mockups/**',
'node_modules/**',
// Vue + Vite scaffold type shim uses `{}` / `any` by design.
'**/vite-env.d.ts',
// Generated by `cargo run --example export_bindings` (tauri-specta).
// The file ships an `// @ts-nocheck` header for vue-tsc and otherwise
// contains framework prelude (`TAURI_CHANNEL`, `__makeEvents__`,
// `Result<T, E>` with `any` fallbacks) that we don't own and cannot
// edit without it being clobbered on the next regeneration.
'src/types/bindings.ts',
],
},
pluginVue.configs['flat/essential'],
vueTsConfigs.recommended,
skipFormatting,
)