Ensure eslint sees temporary files

This commit is contained in:
Oliver Blanthorn 2020-06-18 15:29:18 +01:00
parent 10b00b4f68
commit 13b1be80bd
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3
3 changed files with 9 additions and 1 deletions

1
.gitignore vendored
View file

@ -13,3 +13,4 @@ tags
compiler/*.js
compiler/**/*.js
.*.generated.ts
.tmp/

View file

@ -33,7 +33,8 @@ tslintUgly() {
local acc=""
local IFS=$'\n'
local tmpdir
tmpdir=$(mktemp -d "tslint.XXXXXXXXX")
mkdir -p .tmp
tmpdir=$(mktemp --tmpdir=".tmp/" -d "tslint.XXXXXXXXX")
for jsfile in "$@"; do
tmpfile="$tmpdir/$jsfile"
mkdir -p "$(dirname "$tmpfile")"

6
tsconfig.eslint.json Normal file
View file

@ -0,0 +1,6 @@
{
"extends": "./tsconfig.json",
"include": [
".tmp/**/*.ts"
]
}