diff --git a/apps/meteor/.eslintrc.json b/apps/meteor/.eslintrc.json index 41b02ad3a4520..013a5e0f6b171 100644 --- a/apps/meteor/.eslintrc.json +++ b/apps/meteor/.eslintrc.json @@ -1,5 +1,5 @@ { - "extends": ["@rocket.chat/eslint-config", "@rocket.chat/eslint-config/react", "plugin:you-dont-need-lodash-underscore/compatible"], + "extends": ["@rocket.chat/eslint-config", "@rocket.chat/eslint-config/react", "plugin:you-dont-need-lodash-underscore/compatible", "plugin:storybook/recommended"], "globals": { "__meteor_bootstrap__": false, "__meteor_runtime_config__": false, diff --git a/apps/meteor/package.json b/apps/meteor/package.json index 58b26caee9c2d..ec68da9bebcfe 100644 --- a/apps/meteor/package.json +++ b/apps/meteor/package.json @@ -179,6 +179,7 @@ "eslint-plugin-prettier": "~5.2.6", "eslint-plugin-react": "~7.37.5", "eslint-plugin-react-hooks": "~5.0.0", + "eslint-plugin-storybook": "~0.11.6", "eslint-plugin-testing-library": "~6.4.0", "eslint-plugin-you-dont-need-lodash-underscore": "~6.14.0", "fast-glob": "^3.3.3", diff --git a/ee/packages/pdf-worker/.eslintrc.json b/ee/packages/pdf-worker/.eslintrc.json index 98b4582994d2a..588c5c1dd335e 100644 --- a/ee/packages/pdf-worker/.eslintrc.json +++ b/ee/packages/pdf-worker/.eslintrc.json @@ -1,5 +1,5 @@ { - "extends": ["@rocket.chat/eslint-config", "@rocket.chat/eslint-config/react"], + "extends": ["@rocket.chat/eslint-config", "@rocket.chat/eslint-config/react", "plugin:storybook/recommended"], "parser": "@typescript-eslint/parser", "ignorePatterns": ["**/dist"] } diff --git a/ee/packages/pdf-worker/package.json b/ee/packages/pdf-worker/package.json index e1138e9469322..b76ff7535338c 100644 --- a/ee/packages/pdf-worker/package.json +++ b/ee/packages/pdf-worker/package.json @@ -43,6 +43,7 @@ "@types/react-dom": "~18.3.7", "buffer": "~6.0.3", "eslint": "~8.45.0", + "eslint-plugin-storybook": "~0.11.6", "i18next": "~23.4.9", "jest": "~30.2.0", "react-dom": "~18.3.1", diff --git a/packages/fuselage-ui-kit/package.json b/packages/fuselage-ui-kit/package.json index d5265654495d1..575868af7e0fa 100644 --- a/packages/fuselage-ui-kit/package.json +++ b/packages/fuselage-ui-kit/package.json @@ -81,6 +81,7 @@ "babel-loader": "~10.0.0", "cross-env": "^7.0.3", "eslint": "~8.45.0", + "eslint-plugin-storybook": "~0.11.6", "i18next": "^23.10.1", "jest": "~30.2.0", "normalize.css": "^8.0.1", diff --git a/packages/gazzodown/package.json b/packages/gazzodown/package.json index e14cbde444c44..f6b27bc42f12d 100644 --- a/packages/gazzodown/package.json +++ b/packages/gazzodown/package.json @@ -65,7 +65,7 @@ "eslint-plugin-anti-trojan-source": "~1.1.2", "eslint-plugin-react": "~7.37.5", "eslint-plugin-react-hooks": "~5.0.0", - "eslint-plugin-storybook": "^0.11.6", + "eslint-plugin-storybook": "~0.11.6", "i18next": "~23.4.9", "identity-obj-proxy": "^3.0.0", "jest": "~30.2.0", diff --git a/packages/livechat/.eslintrc.json b/packages/livechat/.eslintrc.json index 32c219de3bd02..f7f540d58e6ba 100644 --- a/packages/livechat/.eslintrc.json +++ b/packages/livechat/.eslintrc.json @@ -1,5 +1,5 @@ { - "extends": ["@rocket.chat/eslint-config", "prettier"], + "extends": ["@rocket.chat/eslint-config", "prettier", "plugin:storybook/recommended"], "plugins": ["react", "react-hooks", "prettier"], "env": { "jest": true diff --git a/packages/livechat/package.json b/packages/livechat/package.json index c5a3f55e5093a..86a95acbc0a81 100644 --- a/packages/livechat/package.json +++ b/packages/livechat/package.json @@ -59,6 +59,7 @@ "eslint-plugin-import": "~2.31.0", "eslint-plugin-react": "~7.37.5", "eslint-plugin-react-hooks": "~5.0.0", + "eslint-plugin-storybook": "~0.11.6", "file-loader": "^6.2.0", "html-webpack-plugin": "~5.6.4", "if-env": "^1.0.4", diff --git a/packages/ui-composer/.eslintrc.json b/packages/ui-composer/.eslintrc.json index 341a302833736..6e0406abd46a7 100644 --- a/packages/ui-composer/.eslintrc.json +++ b/packages/ui-composer/.eslintrc.json @@ -1,4 +1,4 @@ { - "extends": ["@rocket.chat/eslint-config", "@rocket.chat/eslint-config/react"], + "extends": ["@rocket.chat/eslint-config", "@rocket.chat/eslint-config/react", "plugin:storybook/recommended"], "ignorePatterns": ["dist", "storybook-static", "!.storybook"] } diff --git a/packages/ui-composer/package.json b/packages/ui-composer/package.json index 1e498b2c3e2f8..d7a2417ad7832 100644 --- a/packages/ui-composer/package.json +++ b/packages/ui-composer/package.json @@ -43,7 +43,7 @@ "eslint": "~8.45.0", "eslint-plugin-react": "~7.37.5", "eslint-plugin-react-hooks": "~5.0.0", - "eslint-plugin-storybook": "^0.11.6", + "eslint-plugin-storybook": "~0.11.6", "jest": "~30.2.0", "react": "~18.3.1", "react-dom": "~18.3.1", diff --git a/packages/ui-video-conf/.eslintrc.json b/packages/ui-video-conf/.eslintrc.json index 341a302833736..6e0406abd46a7 100644 --- a/packages/ui-video-conf/.eslintrc.json +++ b/packages/ui-video-conf/.eslintrc.json @@ -1,4 +1,4 @@ { - "extends": ["@rocket.chat/eslint-config", "@rocket.chat/eslint-config/react"], + "extends": ["@rocket.chat/eslint-config", "@rocket.chat/eslint-config/react", "plugin:storybook/recommended"], "ignorePatterns": ["dist", "storybook-static", "!.storybook"] } diff --git a/packages/ui-voip/.eslintrc.json b/packages/ui-voip/.eslintrc.json index 341a302833736..6e0406abd46a7 100644 --- a/packages/ui-voip/.eslintrc.json +++ b/packages/ui-voip/.eslintrc.json @@ -1,4 +1,4 @@ { - "extends": ["@rocket.chat/eslint-config", "@rocket.chat/eslint-config/react"], + "extends": ["@rocket.chat/eslint-config", "@rocket.chat/eslint-config/react", "plugin:storybook/recommended"], "ignorePatterns": ["dist", "storybook-static", "!.storybook"] } diff --git a/packages/ui-voip/package.json b/packages/ui-voip/package.json index 1eff170a61b7a..7155fbe954734 100644 --- a/packages/ui-voip/package.json +++ b/packages/ui-voip/package.json @@ -62,7 +62,7 @@ "eslint": "~8.45.0", "eslint-plugin-react": "~7.37.5", "eslint-plugin-react-hooks": "~5.0.0", - "eslint-plugin-storybook": "^0.11.6", + "eslint-plugin-storybook": "~0.11.6", "i18next": "~23.4.9", "jest": "~30.2.0", "jest-axe": "~10.0.0", diff --git a/packages/web-ui-registration/.eslintrc.json b/packages/web-ui-registration/.eslintrc.json index 341a302833736..6e0406abd46a7 100644 --- a/packages/web-ui-registration/.eslintrc.json +++ b/packages/web-ui-registration/.eslintrc.json @@ -1,4 +1,4 @@ { - "extends": ["@rocket.chat/eslint-config", "@rocket.chat/eslint-config/react"], + "extends": ["@rocket.chat/eslint-config", "@rocket.chat/eslint-config/react", "plugin:storybook/recommended"], "ignorePatterns": ["dist", "storybook-static", "!.storybook"] } diff --git a/packages/web-ui-registration/package.json b/packages/web-ui-registration/package.json index d2c7dc09009ad..69e0e95112b6b 100644 --- a/packages/web-ui-registration/package.json +++ b/packages/web-ui-registration/package.json @@ -48,6 +48,7 @@ "@types/react": "~18.3.26", "@types/react-dom": "~18.3.7", "eslint": "~8.45.0", + "eslint-plugin-storybook": "~0.11.6", "i18next": "~23.4.9", "react": "~18.3.1", "react-dom": "~18.3.1", diff --git a/yarn.lock b/yarn.lock index 3c18f4b862003..81934e8873ac2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8676,6 +8676,7 @@ __metadata: babel-loader: "npm:~10.0.0" cross-env: "npm:^7.0.3" eslint: "npm:~8.45.0" + eslint-plugin-storybook: "npm:~0.11.6" i18next: "npm:^23.10.1" jest: "npm:~30.2.0" normalize.css: "npm:^8.0.1" @@ -8773,7 +8774,7 @@ __metadata: eslint-plugin-anti-trojan-source: "npm:~1.1.2" eslint-plugin-react: "npm:~7.37.5" eslint-plugin-react-hooks: "npm:~5.0.0" - eslint-plugin-storybook: "npm:^0.11.6" + eslint-plugin-storybook: "npm:~0.11.6" highlight.js: "npm:11.8.0" i18next: "npm:~23.4.9" identity-obj-proxy: "npm:^3.0.0" @@ -8986,6 +8987,7 @@ __metadata: eslint-plugin-import: "npm:~2.31.0" eslint-plugin-react: "npm:~7.37.5" eslint-plugin-react-hooks: "npm:~5.0.0" + eslint-plugin-storybook: "npm:~0.11.6" file-loader: "npm:^6.2.0" history: "npm:~5.3.0" html-webpack-plugin: "npm:~5.6.4" @@ -9414,6 +9416,7 @@ __metadata: eslint-plugin-prettier: "npm:~5.2.6" eslint-plugin-react: "npm:~7.37.5" eslint-plugin-react-hooks: "npm:~5.0.0" + eslint-plugin-storybook: "npm:~0.11.6" eslint-plugin-testing-library: "npm:~6.4.0" eslint-plugin-you-dont-need-lodash-underscore: "npm:~6.14.0" eventemitter3: "npm:^5.0.1" @@ -9867,6 +9870,7 @@ __metadata: buffer: "npm:~6.0.3" emoji-toolkit: "npm:^7.0.1" eslint: "npm:~8.45.0" + eslint-plugin-storybook: "npm:~0.11.6" i18next: "npm:~23.4.9" jest: "npm:~30.2.0" moment: "npm:^2.30.1" @@ -10369,7 +10373,7 @@ __metadata: eslint: "npm:~8.45.0" eslint-plugin-react: "npm:~7.37.5" eslint-plugin-react-hooks: "npm:~5.0.0" - eslint-plugin-storybook: "npm:^0.11.6" + eslint-plugin-storybook: "npm:~0.11.6" jest: "npm:~30.2.0" react: "npm:~18.3.1" react-dom: "npm:~18.3.1" @@ -10573,7 +10577,7 @@ __metadata: eslint: "npm:~8.45.0" eslint-plugin-react: "npm:~7.37.5" eslint-plugin-react-hooks: "npm:~5.0.0" - eslint-plugin-storybook: "npm:^0.11.6" + eslint-plugin-storybook: "npm:~0.11.6" i18next: "npm:~23.4.9" jest: "npm:~30.2.0" jest-axe: "npm:~10.0.0" @@ -10681,6 +10685,7 @@ __metadata: "@types/react-dom": "npm:~18.3.7" dompurify: "npm:~3.2.7" eslint: "npm:~8.45.0" + eslint-plugin-storybook: "npm:~0.11.6" i18next: "npm:~23.4.9" react: "npm:~18.3.1" react-dom: "npm:~18.3.1" @@ -21408,7 +21413,7 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-storybook@npm:^0.11.6, eslint-plugin-storybook@npm:~0.11.6": +"eslint-plugin-storybook@npm:~0.11.6": version: 0.11.6 resolution: "eslint-plugin-storybook@npm:0.11.6" dependencies: