Skip to content

Commit

Permalink
Fix linting of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adroitwhiz committed Feb 28, 2023
1 parent 6641431 commit 6954ecb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ module.exports = {
"no-console": ["error", {"allow": ["warn", "error"]}]
},
parserOptions: {
'project': './tsconfig.json'
'project': ['./tsconfig.json', './src/__tests__/tsconfig.json']
},
};
2 changes: 1 addition & 1 deletion src/__tests__/compilesb3.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Project } from "..";
import * as fs from "fs";
import * as path from "path";

async function loadProject(filename): Promise<Project> {
async function loadProject(filename: string): Promise<Project> {
const file = fs.readFileSync(path.join(__dirname, filename));
return Project.fromSb3(file);
}
Expand Down
4 changes: 4 additions & 0 deletions src/__tests__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../../tsconfig.json",
"exclude": []
}

0 comments on commit 6954ecb

Please sign in to comment.