-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possibility to rename base layers dir #111
Comments
We're thinking about it, yes, but there's still some unresolved questions, such as how do we stop people from using this to redefine names of layers significantly, or maybe we shouldn't stop them from doing that. However, it would always be best if the layers didn't have to be renamed. Does the strategy from the docs not work in your situation? If so, could you please open an issue on the docs repo about it? |
I see two strategies from the docs:
|
Well, I will create this issue in the docs repo. FYI Now we use https://github.com/javierbrea/eslint-plugin-boundaries (which used in official fsd eslint plugin) as linter in the project and it allows rename layer very easy: // patch this file /node_modules/@feature-sliced/eslint-config/utils/layers.js
const FS_LAYERS = [
- "app",
+ "appp",
"pages",
"widgets",
// ... |
Hey! I use nextjs application with page router architecture. Nextjs reserves directories
app
andpages
. If I use app dir, nextjs automatically start use it as app router architecture and I can't block it in some config. So for FSD we use renamed directory for app layer (we rename toappp
).I would like to be able to change the directory name and set new name in the config. I see example in other issue how can be look #69 (comment) :
But I think It just a prototype and not release yet. Do you have any plans to implement this feature?
The text was updated successfully, but these errors were encountered: