Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Commit

Permalink
Styleguide: deactivate cache and use tsconfig.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Seb-sti1 committed Oct 20, 2023
1 parent 26d17ae commit 0761792
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
16 changes: 13 additions & 3 deletions frontend/styleguide.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
const webpackConfig = require('react-scripts/config/webpack.config.js');

module.exports = {
propsParser: require('react-docgen-typescript').withDefaultConfig({
skipChildrenPropWithoutDoc: false,
}).parse,
title: 'Frontend Components',
propsParser: require('react-docgen-typescript').withCustomConfig(
`${process.cwd()}/tsconfig.json`,
{
skipChildrenPropWithoutDoc: false,
},
).parse,
components: ['src/App.tsx', 'src/Components/**/*.{tsx,jsx,js,ts}'],
webpackConfig: {
...webpackConfig(process.env.NODE_ENV),
cache: false, // DON'T REMOVE THIS!!!!!!
},
ignore: [
'**/__tests__/**',
'**/*.test.{js,jsx,ts,tsx}',
Expand Down
2 changes: 1 addition & 1 deletion frontend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"noEmit": false,
"jsx": "react-jsx",
"noUnusedLocals": true,
"noUnusedParameters": true,
Expand Down

0 comments on commit 0761792

Please sign in to comment.