From 45fe0b36826d2cf24bdc08a813673484a6c30d4f Mon Sep 17 00:00:00 2001 From: vorotamoroz Date: Tue, 26 May 2026 11:24:41 +0100 Subject: [PATCH] chore: lint: enable cache and concurrency --- .gitignore | 3 ++- eslint.config.mjs | 4 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index a6bced9..c443c8e 100644 --- a/.gitignore +++ b/.gitignore @@ -30,4 +30,5 @@ cov_profile/** coverage src/apps/cli/dist/* _testdata/** -utils/bench/splitResults.csv \ No newline at end of file +utils/bench/splitResults.csv +.eslintcache \ No newline at end of file diff --git a/eslint.config.mjs b/eslint.config.mjs index 35b0d25..8109b89 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -43,7 +43,7 @@ export default defineConfig([ { files: ["**/*.ts"], languageOptions: { - globals: { ...globals.browser }, + globals: { ...globals.browser, "PouchDB": "readonly" }, parser: tsParser, parserOptions: { project: "./tsconfig.json", @@ -79,5 +79,5 @@ export default defineConfig([ "no-unused-vars": ["error", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }], "obsidianmd/no-plugin-as-component": "off", // Temporary }, - }, + } ]); diff --git a/package.json b/package.json index 2311f08..f74d849 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "buildVite": "npx dotenv-cli -e .env -- vite build --mode production", "buildViteOriginal": "npx dotenv-cli -e .env -- vite build --mode original", "buildDev": "node esbuild.config.mjs dev", - "lint": "eslint src", + "lint": "eslint --cache --concurrency auto src", "svelte-check": "svelte-check --tsconfig ./tsconfig.json", "tsc-check": "tsc --noEmit", "pretty": "npm run prettyNoWrite -- --write --log-level error",