Skip to content

Commit

Permalink
chore: lint component props with jsx linter
Browse files Browse the repository at this point in the history
  • Loading branch information
sgomez committed Apr 4, 2024
1 parent bb1f92c commit 541f620
Show file tree
Hide file tree
Showing 32 changed files with 155 additions and 621 deletions.
2 changes: 1 addition & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import path from "path";
const config: StorybookConfig = {
stories: ["../stories/**/*.mdx", "../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
addons: [
"@storybook/addon-onboarding",
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-onboarding",
"@storybook/addon-interactions",
"@storybook/addon-themes",
],
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-simple-import-sort": "^12.0.0",
"eslint-plugin-sort": "^3.0.2",
"eslint-plugin-storybook": "^0.8.0",
Expand Down Expand Up @@ -149,7 +150,8 @@
"simple-import-sort",
"sort",
"unused-imports",
"prettier"
"prettier",
"react"
],
"root": true,
"rules": {
Expand All @@ -170,6 +172,7 @@
"import/no-default-export": "error",
"import/no-duplicates": "error",
"no-shadow": "off",
"react/jsx-sort-props": ["error", { "ignoreCase": true }],
"simple-import-sort/exports": "error",
"simple-import-sort/imports": "error",
"sort/destructuring-properties": "error",
Expand Down
Loading

0 comments on commit 541f620

Please sign in to comment.