Commit d6bc6e5
committed
Add rule file isolation boundary to prevent cross-rule imports
- Changed `rules-folder` boundary type to `rule-file` with file-level granularity
- Updated pattern from `src/linter/rules` folder to `src/rules/*.ts` files
- Added explicit disallow rule preventing rule files from importing other rule files
- Updated allowed dependencies for rule files to include `common-folder`, `utils-folder`, and `linter-folder`
- Added custom message explaining rule files should be independent1 parent 574d493 commit d6bc6e5
1 file changed
+10
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
263 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
264 | 269 | | |
265 | 270 | | |
266 | 271 | | |
| |||
339 | 344 | | |
340 | 345 | | |
341 | 346 | | |
342 | | - | |
343 | | - | |
344 | | - | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
345 | 350 | | |
346 | 351 | | |
347 | 352 | | |
| |||
0 commit comments