[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)
pull/1499/head^2
Steve Ruiz 2023-06-02 09:47:34 +01:00 zatwierdzone przez GitHub
rodzic 3bc72cb822
commit 09c367811d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
3 zmienionych plików z 10 dodań i 2 usunięć

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

@ -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 }) {