-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy patheslint.config.mts
More file actions
36 lines (35 loc) · 959 Bytes
/
Copy patheslint.config.mts
File metadata and controls
36 lines (35 loc) · 959 Bytes
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
32
33
34
35
36
import obsidianmd from 'eslint-plugin-obsidianmd';
import globals from 'globals';
import { globalIgnores, defineConfig } from 'eslint/config';
export default defineConfig(
globalIgnores([
'node_modules',
'supernote-typescript',
'scripts',
'esbuild.config.mjs',
'version-bump.mjs',
'versions.json',
'manifest.json',
'manifest-beta.json',
'main.js',
'package.json',
'package-lock.json',
'tsconfig.json',
]),
{
languageOptions: {
globals: {
...globals.browser,
},
parserOptions: {
projectService: {
allowDefaultProject: ['eslint.config.mts', 'vitest.config.ts'],
},
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- import.meta.dirname types as `any` under the ad hoc single-file program that projectService.allowDefaultProject builds for this file
tsconfigRootDir: import.meta.dirname,
extraFileExtensions: ['.json'],
},
},
},
...obsidianmd.configs.recommended,
);