Open Igorkowalski94 opened 2 months ago
Hi @Igorkowalski94 , could you please provide more details? You can enable the debug mode in order to see which element type the plugin is assigning to each file by using the ESLINT_PLUGIN_BOUNDARIES_DEBUG
environment variable.
ESLINT_PLUGIN_BOUNDARIES_DEBUG=1 npm run lint
I have the following structure:
.
├── ...
└── 📂 src
├── ...
└── 📂 features
├── ...
├── 📂 Feature1
│ ├── 📄 Feature1.tsx
│ ├── 📄 feature1.types.ts
│ ├── 📂 helpers // Helpers only for Feature1 folder
│ └── 📂 components // Components only for Feature1 folder
│ ├── ...
│ ├── 📂 Child1 // Same structure as Child2
│ └── 📂 Child2
│ ├── 📄 Child2.tsx
│ ├── 📄 child2.types.ts
│ ├── 📂 helpers // Helpers only for Child2 folder
│ └── 📂 components // Components only for Child2 folder
│
└── 📂 Feature2 // Same structure as Feature1
I would like to achieve the following rules:
I tried many configurations but couldn't achieve these rules. Is it possible?
Yes, it is possible, but you should try to debug your configuration in order to know if your elements are being categorized properly. I suspect that maybe all of them are being categorized as features because they match first the features pattern, but I'm not sure. Could you please provide logs?
Hello,
Is it possible to write such a rule?
I tried this configuration but unfortunately it doesn't work.