blamouche_obsidian-any-ai-code/eslint.config.mjs
blamouche 120c66071d Drop CLIs and Claude Code from descriptions to clear sentence-case flags
The community bot still flagged two sentence-case violations after
0.1.38. Both sit in the manifest.json description: the plural acronym
"CLIs" and the multi-word product name "Claude Code" — neither is in
the linter's known-acronym / proper-noun lists, so they get flagged
mid-sentence.

Reworded the description to "Run AI coding tools like Claude or Codex
from a right sidebar terminal panel." in both manifest.json (the field
the bot actually scans) and package.json (kept in sync for npm
metadata). Also switched the local ESLint config from `recommended` to
`recommendedWithLocalesEn` so future runs match the bot's severity,
and added explicit ignores for non-source JSON / lockfiles.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-26 14:44:58 +02:00

39 lines
915 B
JavaScript

import tsparser from "@typescript-eslint/parser";
import { defineConfig } from "eslint/config";
import obsidianmd from "eslint-plugin-obsidianmd";
export default defineConfig([
{
ignores: [
"main.js",
"node_modules/**",
"dist/**",
"__pycache__/**",
"*.config.mjs",
"*.config.js",
"package.json",
"package-lock.json",
"tsconfig.json",
"versions.json",
".prompt-hub/**"
]
},
...obsidianmd.configs.recommendedWithLocalesEn,
{
files: ["**/*.ts"],
languageOptions: {
parser: tsparser,
parserOptions: {
project: "./tsconfig.json"
}
}
},
{
// Tests intentionally use literal `.obsidian` paths as fixtures for the
// path-resolution helpers. They are not Obsidian configuration usage.
files: ["tests/**/*.ts"],
rules: {
"obsidianmd/hardcoded-config-path": "off"
}
}
]);