Skip to content

Commit

Permalink
Merge 9199194 into 482b4d6
Browse files Browse the repository at this point in the history
  • Loading branch information
mperrotti authored Aug 1, 2024
2 parents 482b4d6 + 9199194 commit 56b53b4
Show file tree
Hide file tree
Showing 291 changed files with 130,813 additions and 672 deletions.
2 changes: 2 additions & 0 deletions package-lock.json

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

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"build:docs": "NODE_OPTIONS=--openssl-legacy-provider script/build-docs",
"build:docs:preview": "NODE_OPTIONS=--openssl-legacy-provider script/build-docs preview",
"build:components.json": "npm run build:components.json -w @primer/react",
"build:component-docs-json": "tsx packages/react/script/prop-docs/build.ts",
"lint": "eslint '**/*.{js,ts,tsx,md,mdx}' --max-warnings=0",
"lint:css": "stylelint '**/*.css'",
"lint:fix": "npm run lint -- --fix",
Expand Down Expand Up @@ -77,6 +78,8 @@
"markdownlint-cli2": "^0.11.0",
"markdownlint-cli2-formatter-pretty": "0.0.3",
"prettier": "3.0.3",
"react-docgen": "7.0.3",
"react-docgen-typescript": "2.2.2",
"rimraf": "5.0.5",
"size-limit": "11.0.2",
"stylelint": "^16.8.1",
Expand Down
23 changes: 23 additions & 0 deletions packages/react/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,29 @@ module.exports = {
typescript: {
reactDocgen: 'react-docgen',
},

// typescript: {
// reactDocgen: 'react-docgen-typescript',
// reactDocgenTypescriptOptions: {
// compilerOptions: {
// allowSyntheticDefaultImports: false,
// esModuleInterop: false,
// savePropValueAsString: true,
// propFilter: (prop, component) => {
// if (prop.declarations !== undefined && prop.declarations.length > 0) {
// const hasPropAdditionalDescription = prop.declarations.find(declaration => {
// return !declaration.fileName.includes('node_modules')
// })

// return Boolean(hasPropAdditionalDescription)
// }

// return true
// },
// },
// },
// },

previewHead: head => {
if (DEPLOY_ENV === 'development') {
return head
Expand Down
Loading

0 comments on commit 56b53b4

Please sign in to comment.