mirror of
https://github.com/vale981/tridactyl
synced 2025-03-04 17:11:40 -05:00
Ensure eslint sees temporary files
This commit is contained in:
parent
10b00b4f68
commit
13b1be80bd
3 changed files with 9 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -13,3 +13,4 @@ tags
|
||||||
compiler/*.js
|
compiler/*.js
|
||||||
compiler/**/*.js
|
compiler/**/*.js
|
||||||
.*.generated.ts
|
.*.generated.ts
|
||||||
|
.tmp/
|
||||||
|
|
|
@ -33,7 +33,8 @@ tslintUgly() {
|
||||||
local acc=""
|
local acc=""
|
||||||
local IFS=$'\n'
|
local IFS=$'\n'
|
||||||
local tmpdir
|
local tmpdir
|
||||||
tmpdir=$(mktemp -d "tslint.XXXXXXXXX")
|
mkdir -p .tmp
|
||||||
|
tmpdir=$(mktemp --tmpdir=".tmp/" -d "tslint.XXXXXXXXX")
|
||||||
for jsfile in "$@"; do
|
for jsfile in "$@"; do
|
||||||
tmpfile="$tmpdir/$jsfile"
|
tmpfile="$tmpdir/$jsfile"
|
||||||
mkdir -p "$(dirname "$tmpfile")"
|
mkdir -p "$(dirname "$tmpfile")"
|
||||||
|
|
6
tsconfig.eslint.json
Normal file
6
tsconfig.eslint.json
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"extends": "./tsconfig.json",
|
||||||
|
"include": [
|
||||||
|
".tmp/**/*.ts"
|
||||||
|
]
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue