-
-
Notifications
You must be signed in to change notification settings - Fork 204
Expand file tree
/
Copy patheslint.config.mjs
More file actions
25 lines (24 loc) · 708 Bytes
/
Copy patheslint.config.mjs
File metadata and controls
25 lines (24 loc) · 708 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
import tsparser from "@typescript-eslint/parser";
import { defineConfig } from "eslint/config";
import obsidianmd from "eslint-plugin-obsidianmd";
import tseslint from "typescript-eslint";
export default defineConfig([
{
ignores: ["node_modules/", "main.js", "docs/"],
},
...obsidianmd.configs.recommended,
...tseslint.configs.recommended,
{
files: ["**/*.ts", "**/*.tsx"],
languageOptions: {
parser: tsparser,
parserOptions: { project: "./tsconfig.eslint.json" },
},
rules: {
// Preserve existing rules
"@typescript-eslint/no-unused-vars": ["error", { args: "none" }],
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-empty-function": "off",
},
},
]);