Skip to content

Commit

Permalink
3.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Igorkowalski94 committed Oct 26, 2024
1 parent 35e44f1 commit 59e486c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
3 changes: 2 additions & 1 deletion src/rules/folderStructure/helpers/handleProgram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) ||
Expand Down

0 comments on commit 59e486c

Please sign in to comment.