From 5f1dbab8d261a8e7b04fd56ca12a67cdd8d65697 Mon Sep 17 00:00:00 2001 From: Igor Kowalski Date: Fri, 27 Sep 2024 13:54:01 +0200 Subject: [PATCH] 2.7.2 --- README.md | 3 +++ package.json | 4 ++-- .../helpers/validateLongPath.ts | 2 +- yarn.lock | 10 +++++----- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 6786ea3..9d8fb8e 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,8 @@ 🎮[Playground](https://github.com/Igorkowalski94/eslint-plugin-project-structure-playground#root) for eslint-plugin-project-structure rules. +Check the latest [releases](https://github.com/Igorkowalski94/eslint-plugin-project-structure/releases) and stay updated with new features and changes. + Become part of the community!
Leave a ⭐ and share the link with your friends.
@@ -73,6 +75,7 @@ where removing or editing one feature triggers a chain reaction that impacts the - Creating independent modules in which you control what can be imported (e.g. types, functions, components of one functionality cannot be imported into another functionality). - The ability to create very detailed rules, even for nested folder structures. Whether it's a large module, a sub-module, or a single file, there are no limitations. +- Support for all types of imports, including `require()`, `import()`, `jest.mock()`, and `jest.requireActual()`, as well as `ExportAllDeclaration` and `ExportNamedDeclaration`. - Disabling external imports (node_modules) for a given module (Option to add exceptions). - Non-relative/relative imports support. - Support for imports without extension. diff --git a/package.json b/package.json index 7e4cc62..8cd273e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "author": "Igor Kowalski (Igorkowalski94)", "name": "eslint-plugin-project-structure", - "version": "2.7.1", + "version": "2.7.2", "license": "MIT", "description": "ESLint plugin with rules to help you achieve a scalable, consistent, and well-structured project. Define your folder structure, advanced naming conventions, file composition, and create independent modules. react folder structure react file structure react project structure react conventions architecture react next.js angular node solid vue svelte", "keywords": [ @@ -81,7 +81,7 @@ "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.30.0", "eslint-plugin-prettier": "^5.2.1", - "eslint-plugin-project-structure": "2.7.0", + "eslint-plugin-project-structure": "2.7.1", "husky": "^9.1.6", "jest": "^29.7.0", "prettier": "^3.3.3", diff --git a/src/rules/folderStructure/helpers/validateFolderStructure/helpers/validateLongPath.ts b/src/rules/folderStructure/helpers/validateFolderStructure/helpers/validateLongPath.ts index 13aa0e5..f2ee17c 100644 --- a/src/rules/folderStructure/helpers/validateFolderStructure/helpers/validateLongPath.ts +++ b/src/rules/folderStructure/helpers/validateFolderStructure/helpers/validateLongPath.ts @@ -28,7 +28,7 @@ export const validateLongPath = ({ const pathMaxLength = longPathsInfo?.maxLength ?? 240; - if (currentPath.length < pathMaxLength) return; + if (currentPath.length <= pathMaxLength) return; if (longPathsInfo === undefined || longPathsInfo.mode === "warn") // eslint-disable-next-line no-console diff --git a/yarn.lock b/yarn.lock index 19a5f39..0566c26 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2832,16 +2832,16 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-project-structure@npm:2.7.0": - version: 2.7.0 - resolution: "eslint-plugin-project-structure@npm:2.7.0" +"eslint-plugin-project-structure@npm:2.7.1": + version: 2.7.1 + resolution: "eslint-plugin-project-structure@npm:2.7.1" dependencies: "@typescript-eslint/utils": ^8.7.0 comment-json: ^4.2.5 js-yaml: ^4.1.0 jsonschema: ^1.4.1 micromatch: ^4.0.8 - checksum: 0621b2208e3df6510414222f704e8eefde7ea6a43b46422c26d9ee85637839961856d5f7559e423bb6040000c062892ec91b904e5e18b9b96ad14e8771037daf + checksum: 61a7f6e75572d1a96baa75e09289b1800849df6d60dbb85272cbabefe21b0b8ed0b2cac2d38d7c5e04b506a1dc394ac5df234f18522e0911e6c30378a4e12fac languageName: node linkType: hard @@ -2862,7 +2862,7 @@ __metadata: eslint-config-prettier: ^9.1.0 eslint-plugin-import: ^2.30.0 eslint-plugin-prettier: ^5.2.1 - eslint-plugin-project-structure: 2.7.0 + eslint-plugin-project-structure: 2.7.1 husky: ^9.1.6 jest: ^29.7.0 js-yaml: ^4.1.0