Skip to content

Commit

Permalink
🚨(app-desk) improve linter
Browse files Browse the repository at this point in the history
The linter was passing near the ts errors in
the tests, we improve the linter by adding
a ts checkup.
  • Loading branch information
AntoLC committed Apr 4, 2024
1 parent 603ece4 commit 409691d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/frontend/apps/impress/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,3 @@ yarn-error.log*

# typescript
*.tsbuildinfo
next-env.d.ts
1 change: 1 addition & 0 deletions src/frontend/apps/impress/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
next-env.d.ts
5 changes: 5 additions & 0 deletions src/frontend/apps/impress/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
2 changes: 1 addition & 1 deletion src/frontend/apps/impress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build:ci": "cp .env.development .env.local && yarn build",
"build-theme": "cunningham -g css,ts -o src/cunningham --utility-classes",
"start": "npx -y serve@latest out",
"lint": "next lint",
"lint": "tsc --noEmit && next lint",
"prettier": "prettier --write .",
"stylelint": "stylelint \"**/*.css\"",
"test": "jest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe('fetchAPI', () => {
},
});

useAuthStore.setState({ userData: { email: '[email protected]' } });
useAuthStore.setState({ userData: { email: '[email protected]', id: '1234' } });

fetchMock.mock('http://some.api.url/api/v1.0/some/url', 401);

Expand Down

0 comments on commit 409691d

Please sign in to comment.