Replies: 1 comment
-
The inteded way to deal with these situations is to exclude these folders from the public API rule, preferably with a comment describing the reason for exclusion: // ./steiger.config.js
import { defineConfig } from 'steiger'
import fsd from '@feature-sliced/steiger-plugin'
export default defineConfig([
...fsd.configs.recommended,
{
// These folders don't contain JS files, so it's okay not to have a public API there
files: ['./src/shared/styles/**', './src/shared/assets/fonts/**'],
rules: {
'fsd/public-api': 'off',
},
},
]) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have global.css in shared/styles and many .woff fonts in shared/assets/fonts. I can add index.ts to prevent this but is there a right way?
Beta Was this translation helpful? Give feedback.
All reactions