Skip to content

Commit

Permalink
fix: eslint and typescript to storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
ettysekhon committed Jan 19, 2023
1 parent 90c7686 commit c43a3ea
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ dist-ssr
.cache
server/dist
public/dist
storybook-static
11 changes: 10 additions & 1 deletion apps/docs/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
"stories": [
"../stories/**/*.mdx",
"../stories/**/*.stories.@(js|jsx|ts|tsx)"
"../stories/**/*.stories.tsx"
],
"addons": [
"@storybook/addon-links",
Expand All @@ -18,4 +18,13 @@ module.exports = {
"docs": {
"autodocs": "tag"
},
typescript: {
check: false,
checkOptions: {},
reactDocgen: 'react-docgen-typescript',
reactDocgenTypescriptOptions: {
shouldExtractLiteralValuesFromEnum: true,
propFilter: (prop) => (prop.parent ? !/node_modules/.test(prop.parent.fileName) : true),
},
},
}
1 change: 1 addition & 0 deletions packages/eslint-config-custom/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module.exports = {
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:@typescript-eslint/recommended",
"prettier",
],
Expand Down
4 changes: 4 additions & 0 deletions packages/ui/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
root: true,
extends: ["custom"],
};

0 comments on commit c43a3ea

Please sign in to comment.