mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-10-16 06:12:30 +00:00
chore: lint: enable cache and concurrency
This commit is contained in:
@@ -31,3 +31,4 @@ coverage
|
|||||||
src/apps/cli/dist/*
|
src/apps/cli/dist/*
|
||||||
_testdata/**
|
_testdata/**
|
||||||
utils/bench/splitResults.csv
|
utils/bench/splitResults.csv
|
||||||
|
.eslintcache
|
||||||
+2
-2
@@ -43,7 +43,7 @@ export default defineConfig([
|
|||||||
{
|
{
|
||||||
files: ["**/*.ts"],
|
files: ["**/*.ts"],
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
globals: { ...globals.browser },
|
globals: { ...globals.browser, "PouchDB": "readonly" },
|
||||||
parser: tsParser,
|
parser: tsParser,
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
project: "./tsconfig.json",
|
project: "./tsconfig.json",
|
||||||
@@ -79,5 +79,5 @@ export default defineConfig([
|
|||||||
"no-unused-vars": ["error", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }],
|
"no-unused-vars": ["error", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }],
|
||||||
"obsidianmd/no-plugin-as-component": "off", // Temporary
|
"obsidianmd/no-plugin-as-component": "off", // Temporary
|
||||||
},
|
},
|
||||||
},
|
}
|
||||||
]);
|
]);
|
||||||
|
|||||||
+1
-1
@@ -19,7 +19,7 @@
|
|||||||
"buildVite": "npx dotenv-cli -e .env -- vite build --mode production",
|
"buildVite": "npx dotenv-cli -e .env -- vite build --mode production",
|
||||||
"buildViteOriginal": "npx dotenv-cli -e .env -- vite build --mode original",
|
"buildViteOriginal": "npx dotenv-cli -e .env -- vite build --mode original",
|
||||||
"buildDev": "node esbuild.config.mjs dev",
|
"buildDev": "node esbuild.config.mjs dev",
|
||||||
"lint": "eslint src",
|
"lint": "eslint --cache --concurrency auto src",
|
||||||
"svelte-check": "svelte-check --tsconfig ./tsconfig.json",
|
"svelte-check": "svelte-check --tsconfig ./tsconfig.json",
|
||||||
"tsc-check": "tsc --noEmit",
|
"tsc-check": "tsc --noEmit",
|
||||||
"pretty": "npm run prettyNoWrite -- --write --log-level error",
|
"pretty": "npm run prettyNoWrite -- --write --log-level error",
|
||||||
|
|||||||
Reference in New Issue
Block a user