Skip to content
This repository was archived by the owner on Nov 25, 2021. It is now read-only.

Commit 6b41f2c

Browse files
committed
chore: run tslint on testdata directory too
1 parent 31779c6 commit 6b41f2c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"scripts": {
1010
"commitmsg": "commitlint -e $GIT_PARAMS",
1111
"prettier": "prettier '**/{*.{js?(on),ts?(x),scss},.*.js?(on)}' --write --list-different",
12-
"tslint": "tslint -c tslint.json -p tsconfig.json 'src/*.ts?(x)'",
12+
"tslint": "tslint -c tslint.json -p tsconfig.json './src/*.ts?(x)' './testdata/*.ts?(x)' './*.ts?(x)'",
1313
"build": "tsc -p tsconfig.dist.json",
1414
"watch": "npm run build -- --watch",
1515
"test": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' karma start",

testdata/generate.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ const code = fs
1414
.toString()
1515
.split('\n')
1616

17-
fs.writeFile(path.join(generatedDir, 'github.html'), generateGithubCodeTable(code))
18-
fs.writeFile(path.join(generatedDir, 'sourcegraph.html'), generateSourcegraphCodeTable(code))
17+
fs.writeFileSync(path.join(generatedDir, 'github.html'), generateGithubCodeTable(code))
18+
fs.writeFileSync(path.join(generatedDir, 'sourcegraph.html'), generateSourcegraphCodeTable(code))

0 commit comments

Comments
 (0)