mirror of
https://github.com/ebullient/obsidian-deck-notes.git
synced 2026-07-22 16:20:29 +00:00
35 lines
1,009 B
JavaScript
35 lines
1,009 B
JavaScript
// eslint.config.mjs
|
|
import globals from "globals";
|
|
import tsparser from "@typescript-eslint/parser";
|
|
import { defineConfig, globalIgnores } from "eslint/config";
|
|
import obsidianmd from "eslint-plugin-obsidianmd";
|
|
|
|
export default defineConfig([
|
|
...obsidianmd.configs.recommended,
|
|
globalIgnores([
|
|
"tests/",
|
|
"*.mjs",
|
|
"package.json"
|
|
]),
|
|
{
|
|
files: ["src/**/*.ts"],
|
|
languageOptions: {
|
|
parser: tsparser,
|
|
parserOptions: {
|
|
project: "./tsconfig.json"
|
|
},
|
|
globals: { ...globals.node, ...globals.browser },
|
|
},
|
|
// Optional project overrides
|
|
rules: {
|
|
"obsidianmd/ui/sentence-case": [
|
|
"warn",
|
|
{
|
|
brands: ["Deck Notes", "journal/coping\nactivities/morning", "example"],
|
|
acronyms: ["DN", "H2"],
|
|
enforceCamelCaseLower: true,
|
|
},
|
|
],
|
|
},
|
|
},
|
|
]);
|