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

Commit

Permalink
Documentation: Use react-docgen-typescript to add props
Browse files Browse the repository at this point in the history
  • Loading branch information
Seb-sti1 committed Oct 5, 2023
1 parent 783592f commit 0c24413
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"prettier": "^3.0.3",
"react-docgen-typescript": "^2.2.2",
"react-styleguidist": "^13.1.1",
"ts-loader": "^9.4.4",
"webpack": "^5.88.2"
Expand Down
3 changes: 3 additions & 0 deletions frontend/styleguide.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
module.exports = {
propsParser: require('react-docgen-typescript').withDefaultConfig({
skipChildrenPropWithoutDoc: false,
}).parse,
components: ['src/App.tsx', 'src/Components/**/*.{tsx,jsx,js,ts}'],
ignore: [
'**/__tests__/**',
Expand Down

0 comments on commit 0c24413

Please sign in to comment.