diff --git a/apps/vscode/editor/package.json b/apps/vscode/editor/package.json index 6935727e6..e267760e0 100644 --- a/apps/vscode/editor/package.json +++ b/apps/vscode/editor/package.json @@ -30,7 +30,7 @@ "build": "yarn run -T tsx scripts/build.ts", "dev": "yarn run -T tsx scripts/dev.ts", "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist", - "lint": "yarn run -T tsx ../../../scripts/lint.ts" + "lint": "yarn run -T eslint --report-unused-disable-directives --ignore-path ../../../.eslintignore" }, "devDependencies": { "@tldraw/assets": "workspace:*", diff --git a/apps/vscode/extension/package.json b/apps/vscode/extension/package.json index 734b3820f..9d86f2fbd 100644 --- a/apps/vscode/extension/package.json +++ b/apps/vscode/extension/package.json @@ -126,7 +126,7 @@ "build": "cd ../editor && yarn build && cd ../extension && tsx scripts/build.ts", "package": "yarn build && tsx scripts/package.ts", "publish": "vsce publish", - "lint": "yarn run -T tsx ../../../scripts/lint.ts", + "lint": "yarn run -T eslint --report-unused-disable-directives --ignore-path ../../../.eslintignore", "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist && rm -rf editor && rm -rf temp & yarn" }, "devDependencies": { diff --git a/scripts/check-scripts.ts b/scripts/check-scripts.ts index 24bcf14af..144cd1a2c 100644 --- a/scripts/check-scripts.ts +++ b/scripts/check-scripts.ts @@ -63,6 +63,14 @@ const perPackageExceptions: Record string | undefin prepack: () => undefined, postpack: () => undefined, }, + 'tldraw-vscode': { + lint: () => + 'yarn run -T eslint --report-unused-disable-directives --ignore-path ../../../.eslintignore', + }, + '@tldraw/vscode-editor': { + lint: () => + 'yarn run -T eslint --report-unused-disable-directives --ignore-path ../../../.eslintignore', + }, } async function main({ fix }: { fix?: boolean }) {