This repository has been archived by the owner on Dec 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This makes sure that files generated by the blueprints type-check correctly. As all tests use fixture files to test that the blueprints generate the correct output, we can just add a linting test that type-checks the existing static fixtures files, instead of running the blueprints and type-checking the output afterwards. To make imports not cause type errors, the appropriate typing packages have been added to `devDependencies`, and `types/index.d.ts` declares all in-app modules used in the test fixtures.
- Loading branch information
1 parent
c918a2d
commit ea8d66e
Showing
5 changed files
with
377 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es2017", | ||
"allowJs": true, | ||
"moduleResolution": "node", | ||
"allowSyntheticDefaultImports": true, | ||
"noImplicitAny": true, | ||
"noImplicitThis": true, | ||
"alwaysStrict": true, | ||
"strictNullChecks": true, | ||
"strictPropertyInitialization": true, | ||
"noFallthroughCasesInSwitch": true, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"noImplicitReturns": true, | ||
"noEmitOnError": false, | ||
"noEmit": true, | ||
"inlineSourceMap": true, | ||
"inlineSources": true, | ||
"baseUrl": ".", | ||
"module": "es6", | ||
"skipLibCheck": true, | ||
"paths": { | ||
"*": [ | ||
"types/*" | ||
] | ||
} | ||
}, | ||
"include": [ | ||
"node-tests/fixtures/**/*", | ||
"types/**/*" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
declare module "dummy/utils/foo-bar"; | ||
declare module "dummy/utils/foo/bar-baz"; | ||
declare module "dummy/initializers/foo"; | ||
declare module "dummy/instance-initializers/foo"; | ||
declare module "my-addon/helpers/foo/bar-baz"; | ||
declare module "my-addon/mixins/foo"; | ||
declare module "my-app/helpers/foo/bar-baz"; | ||
declare module "my-app/initializers/foo"; | ||
declare module "my-app/init/initializers/foo"; | ||
declare module "my-app/instance-initializers/foo"; | ||
declare module "my-app/init/instance-initializers/foo"; | ||
declare module "my-app/mixins/foo"; | ||
declare module "my-app/tests/helpers/module-for-acceptance"; | ||
declare module "my-app/tests/helpers/start-app"; | ||
declare module "my-app/utils/foo-bar"; | ||
declare module "my-app/utils/foo/bar-baz"; |
Oops, something went wrong.