tldraw/scripts/package.json
alex 640bc9de24
Revert 09c36781 & tweak linting (#1501)
This diff reverts 09c36781 and tweaks how some of our linting was
working.

I'm not actually sure what caused the regression that 09c36781 was
fixing - it was something to do with typescript being used to transpile
eslintrc.js, but that being excluded from the tsconfig for those
projects. I fixed that by removing `rootDir` from those, but that
revealed some other issues with files not getting ignored correctly.

I fixed the ignoring issue with a change I've wanted to make to these
scripts for a while: only running them on files that are actually
tracked by git, instead of on everything with a relevant extension. A
side effect of that is that we have to re-implement .eslintignore
support ourselves, but that's very straight forward: the `ignore`
package that eslint uses is very easy to include.

### Change Type
- [x] `internal` — Any other changes that don't affect the published
package (will not publish a new version)

### Test Plan
-

### Release Notes
[internal-only]
2023-06-02 10:45:51 +00:00

54 lines
1.1 KiB
JSON

{
"name": "@tldraw/scripts",
"description": "build scripts",
"version": "2.0.0-alpha.8",
"private": true,
"packageManager": "yarn@3.5.0",
"author": {
"name": "tldraw GB Ltd.",
"email": "hello@tldraw.com"
},
"homepage": "https://tldraw.dev",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/tldraw/tldraw"
},
"bugs": {
"url": "https://github.com/tldraw/tldraw/issues"
},
"keywords": [
"tldraw",
"drawing",
"app",
"development",
"whiteboard",
"canvas",
"infinite"
],
"devDependencies": {
"@auto-it/core": "^10.45.0",
"@types/is-ci": "^3.0.0",
"@types/node": "^18.13.0",
"@typescript-eslint/utils": "^5.59.0",
"ast-types": "^0.14.2",
"cross-fetch": "^3.1.5",
"esbuild": "^0.16.7",
"glob": "^8.0.3",
"is-ci": "^3.0.1",
"kleur": "^4.1.5",
"lazyrepo": "0.0.0-alpha.26",
"prettier": "^2.8.7",
"recast": "^0.22.0",
"rimraf": "^4.4.0",
"semver": "^7.3.8",
"svgo": "^3.0.2",
"typescript": "^4.5.2"
},
"scripts": {
"lint": "yarn run -T tsx lint.ts"
},
"dependencies": {
"ignore": "^5.2.4"
}
}