From 33b9f998da2945d2d9d9929f340d491ca63d4094 Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Wed, 2 Apr 2025 10:42:04 -0400 Subject: [PATCH] exclude storybook components from restricted globals rule --- packages/frontend/eslint.config.js | 6 ++++++ packages/shared/eslint.config.js | 6 ++++++ 2 files changed, 12 insertions(+) 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 @@ -164,6 +164,12 @@ export default [ 'vue/attribute-hyphenation': ['error', 'never'], }, }, + { + files: ['src/**/*.stories.ts'], + rules: { + 'no-restricted-globals': 'off', + } + }, { ignores: [ "**/lib/", 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', + } + }, ];