diff options
| author | Hazelnoot <acomputerdog@gmail.com> | 2025-04-02 10:42:04 -0400 |
|---|---|---|
| committer | Hazelnoot <acomputerdog@gmail.com> | 2025-04-02 10:42:04 -0400 |
| commit | 33b9f998da2945d2d9d9929f340d491ca63d4094 (patch) | |
| tree | 83b0aa92418e395dad146ce619c926b473cb67cd | |
| parent | fix backend lint errors (diff) | |
| download | sharkey-33b9f998da2945d2d9d9929f340d491ca63d4094.tar.gz sharkey-33b9f998da2945d2d9d9929f340d491ca63d4094.tar.bz2 sharkey-33b9f998da2945d2d9d9929f340d491ca63d4094.zip | |
exclude storybook components from restricted globals rule
| -rw-r--r-- | packages/frontend/eslint.config.js | 6 | ||||
| -rw-r--r-- | packages/shared/eslint.config.js | 6 |
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', + } + }, ]; |