From 59e486c7d64187e91caf231afad3a40189246c24 Mon Sep 17 00:00:00 2001 From: Igor Kowalski Date: Sat, 26 Oct 2024 14:19:37 +0200 Subject: [PATCH] 3.9.1 --- package.json | 2 +- src/rules/folderStructure/helpers/handleProgram.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ec8dd6d..b86cf8b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "author": "Igor Kowalski (Igorkowalski94)", "name": "eslint-plugin-project-structure", - "version": "3.9.0", + "version": "3.9.1", "license": "MIT", "description": "Powerful ESLint plugin with rules to help you achieve a scalable, consistent, and well-structured project. Create your own framework! Define your folder structure, file composition, advanced naming conventions, and create independent modules. Take your project to the next level and save time by automating the review of key principles of a healthy project! react folder structure react file structure react project structure react conventions architecture react next.js angular node solid vue svelte", "keywords": [ diff --git a/src/rules/folderStructure/helpers/handleProgram.ts b/src/rules/folderStructure/helpers/handleProgram.ts index f304819..83c2f0e 100644 --- a/src/rules/folderStructure/helpers/handleProgram.ts +++ b/src/rules/folderStructure/helpers/handleProgram.ts @@ -30,8 +30,9 @@ export const handleProgram = ({ settings, options: options[0], }); - const structureRoot = path.resolve(cwd, config.structureRoot ?? "."); + const projectRoot = path.resolve(cwd, config.projectRoot ?? "."); + const structureRoot = path.resolve(projectRoot, config.structureRoot ?? "."); if ( !filename.includes(structureRoot) ||