[fix] eslint from brivate (#1498)

This PR updates the `lint` scripts for the vs code extension in order to
solve a very weird bug with our submodules setup.

### Change Type

- [x] `internal` — Any other changes that don't affect the published
package (will not publish a new version)
This commit is contained in:
Steve Ruiz 2023-06-02 09:47:34 +01:00 committed by GitHub
parent 3bc72cb822
commit 09c367811d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 2 deletions

View file

@ -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:*",

View file

@ -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": {

View file

@ -63,6 +63,14 @@ const perPackageExceptions: Record<string, Record<string, () => 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 }) {