summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHazelnoot <acomputerdog@gmail.com>2025-04-02 10:42:04 -0400
committerHazelnoot <acomputerdog@gmail.com>2025-04-02 10:42:04 -0400
commit33b9f998da2945d2d9d9929f340d491ca63d4094 (patch)
tree83b0aa92418e395dad146ce619c926b473cb67cd
parentfix backend lint errors (diff)
downloadsharkey-33b9f998da2945d2d9d9929f340d491ca63d4094.tar.gz
sharkey-33b9f998da2945d2d9d9929f340d491ca63d4094.tar.bz2
sharkey-33b9f998da2945d2d9d9929f340d491ca63d4094.zip
exclude storybook components from restricted globals rule
-rw-r--r--packages/frontend/eslint.config.js6
-rw-r--r--packages/shared/eslint.config.js6
2 files changed, 12 insertions, 0 deletions
diff --git a/packages/frontend/eslint.config.js b/packages/frontend/eslint.config.js
index 26ee288523..a5381e14e3 100644
--- a/packages/frontend/eslint.config.js
+++ b/packages/frontend/eslint.config.js
@@ -165,6 +165,12 @@ export default [
},
},
{
+ files: ['src/**/*.stories.ts'],
+ rules: {
+ 'no-restricted-globals': 'off',
+ }
+ },
+ {
ignores: [
"**/lib/",
"**/temp/",
diff --git a/packages/shared/eslint.config.js b/packages/shared/eslint.config.js
index 295829e374..bb3d6277da 100644
--- a/packages/shared/eslint.config.js
+++ b/packages/shared/eslint.config.js
@@ -44,4 +44,10 @@ export default [
'no-param-reassign': 'off',
},
},
+ {
+ files: ['src/**/*.stories.ts'],
+ rules: {
+ 'no-restricted-globals': 'off',
+ }
+ },
];