-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patheslint.config.mjs
More file actions
27 lines (26 loc) · 914 Bytes
/
Copy patheslint.config.mjs
File metadata and controls
27 lines (26 loc) · 914 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
// Lint config — the recurrence-prevention gate. `eslint-plugin-obsidianmd`
// encodes the same rules the Obsidian plugin reviewer runs, so violations are
// caught locally and in CI instead of at submission/review time.
import tseslint from "typescript-eslint";
import obsidianmd from "eslint-plugin-obsidianmd";
export default tseslint.config(
{
ignores: ["main.js", "main.js.map", "node_modules/**", "tests/**", "*.mjs"],
},
...obsidianmd.configs.recommended,
{
files: ["src/**/*.ts"],
languageOptions: {
parser: tseslint.parser,
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
rules: {
// User-facing strings are Korean by project convention (and the rule also
// mis-fires on key names like "Esc"), so English sentence-case doesn't apply.
"obsidianmd/ui/sentence-case": "off",
},
}
);