Skip to content

Commit 414ab4c

Browse files
watch eslint
1 parent 215f424 commit 414ab4c

File tree

4 files changed

+234
-5
lines changed

4 files changed

+234
-5
lines changed

typescript/eslint.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ module.exports = [
4848
// "@typescript-eslint/no-explicit-any": "error",
4949
"@typescript-eslint/no-unused-vars": [
5050
"warn",
51-
{ argsIgnorePattern: "^_" },
51+
{
52+
argsIgnorePattern: "^_",
53+
varsIgnorePattern: "^_",
54+
caughtErrorsIgnorePattern: "^_",
55+
},
5256
],
5357

5458
// React rules

typescript/package-lock.json

Lines changed: 224 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

typescript/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
"clean": "rm -rf dist",
1010
"build": "tsup",
1111
"build:watch": "tsup --watch",
12-
"dev": "concurrently \"npm run build:watch\" \"npm run lint:watch\" \"npm run type-check:watch\"",
13-
"type-check:watch": "tsc --noEmit --watch --pretty",
14-
"lint:watch": "eslint src --ext .ts,.tsx --cache",
12+
"dev": "concurrently \"npm run build:watch\" \"npm run lint:watch\" \"npm run check:watch\"",
13+
"check:watch": "tsc --noEmit --watch --pretty",
14+
"lint:watch": "nodemon --watch src --ext ts,tsx --exec \"eslint src --ext .ts,.tsx\"",
1515
"generate-types": "ts-node scripts/generate-types.ts",
1616
"test": "vitest",
1717
"test:run": "vitest run",
@@ -62,6 +62,7 @@
6262
"json-schema-to-typescript": "^15.0.4",
6363
"json5": "^2.2.3",
6464
"lint-staged": "^15.5.2",
65+
"nodemon": "^3.1.10",
6566
"prettier": "3.5.3",
6667
"puppeteer": "^24.9.0",
6768
"size-limit": "^11.2.0",

typescript/src/renderer/JsonDocRenderer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const JsonDocRenderer = ({
5353
} catch (_) {
5454
// console.log("error ", error);
5555
}
56-
}, []);
56+
}, [page]);
5757

5858
// return null;
5959
const renderedContent = (

0 commit comments

Comments
 (0)