Skip to content

Commit

Permalink
feat: add support for nestjs with typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
ljosberinn authored Jan 17, 2022
1 parent aafd534 commit ed323bb
Show file tree
Hide file tree
Showing 28 changed files with 7,224 additions and 936 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ All rules are commented and link to their docs.
- [x] @testing-library
- [x] prettier
- [x] storybook & storybook/testing-library
- [x] NestJS (with TypeScript)

## What can you do?

Expand Down Expand Up @@ -221,6 +222,10 @@ interface Project {
* whether any `@testing-library/<environment>` is present
*/
hasTestingLibrary: boolean;
/**
* whether `@nestjs/core` is present
*/
hasNest: boolean;
storybook: {
/**
* whether any `@storybook/` is present that is not `@storybook/testing-library`
Expand Down
1 change: 1 addition & 0 deletions integration/cra-js/deps.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"hasJestDom": true,
"hasNodeTypes": false,
"hasTestingLibrary": true,
"hasNest": false,
"storybook": {
"hasStorybook": false,
"hasStorybookTestingLibrary": false
Expand Down
1 change: 1 addition & 0 deletions integration/cra-ts/deps.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"hasJestDom": true,
"hasNodeTypes": true,
"hasTestingLibrary": true,
"hasNest": false,
"storybook": {
"hasStorybook": false,
"hasStorybookTestingLibrary": false
Expand Down
1 change: 1 addition & 0 deletions integration/jest/deps.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"hasJestDom": false,
"hasNodeTypes": false,
"hasTestingLibrary": false,
"hasNest": false,
"storybook": {
"hasStorybook": false,
"hasStorybookTestingLibrary": false
Expand Down
1 change: 1 addition & 0 deletions integration/nest-ts/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('../abstractConfig');
38 changes: 38 additions & 0 deletions integration/nest-ts/deps.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"hasJest": true,
"hasJestDom": false,
"hasNodeTypes": true,
"hasTestingLibrary": false,
"hasNest": true,
"storybook": {
"hasStorybook": false,
"hasStorybookTestingLibrary": false
},
"react": {
"hasReact": false,
"isCreateReactApp": false,
"isNext": false,
"isRemix": false,
"isPreact": false
},
"typescript": {
"config": {
"compilerOptions": {
"module": "commonjs",
"declaration": true,
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"target": "es2017",
"sourceMap": true,
"outDir": "./dist",
"baseUrl": "./",
"incremental": true,
"skipLibCheck": true
}
},
"hasTypeScript": true,
"version": "^4.4.4"
}
}
Loading

0 comments on commit ed323bb

Please sign in to comment.