mirror of
https://github.com/ccmdi/obsidian-map-plus.git
synced 2026-07-22 06:43:14 +00:00
33 lines
No EOL
605 B
JavaScript
33 lines
No EOL
605 B
JavaScript
import obsidianmd from "eslint-plugin-obsidianmd";
|
|
import tseslint from "typescript-eslint";
|
|
|
|
export default tseslint.config(
|
|
{
|
|
ignores: [
|
|
"node_modules/**",
|
|
"main.js",
|
|
],
|
|
},
|
|
|
|
{
|
|
files: ["*.config.mjs", "*.config.js", "*.mjs"],
|
|
languageOptions: {
|
|
globals: {
|
|
process: "readonly",
|
|
},
|
|
},
|
|
},
|
|
|
|
...obsidianmd.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
|
|
{
|
|
files: ["**/*.ts", "**/*.tsx"],
|
|
languageOptions: {
|
|
parserOptions: {
|
|
projectService: true,
|
|
tsconfigRootDir: import.meta.dirname,
|
|
},
|
|
}
|
|
},
|
|
); |