Skip to content

Commit

Permalink
3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Igorkowalski94 committed Oct 2, 2024
1 parent 87144c8 commit bf236ae
Show file tree
Hide file tree
Showing 4 changed files with 6 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.0.0",
"version": "3.0.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
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ interface ValidateRulesProps {
name: string;
filenamePath: string;
node: ValidateFileProps["node"];
nodeNotExported?: ValidateFileProps["node"];
nodeType: NodeType;
rules: Rule[];
errorMessageId: keyof typeof ESLINT_ERRORS;
Expand All @@ -44,6 +45,7 @@ export const validateRules = ({
expressionName,
allowOnlySpecifiedSelectors,
scope,
nodeNotExported,
context,
context: { report },
}: ValidateRulesProps): void => {
Expand Down Expand Up @@ -94,7 +96,7 @@ export const validateRules = ({

if (isValid)
return validatePositionIndex({
node,
node: nodeNotExported ?? node,
positionIndex,
selectorType,
context,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ describe("validateFile", () => {
name: "componentNameExport",
nodeType: "VariableDeclarator",
node: {},
nodeNotExported: {},
filenamePath: path.relative(
"C:/somePath",
"C:/somePath/src/features/Feature1/Feature1.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export const validateFile = ({
name: currentName,
nodeType,
node: currentNode,
nodeNotExported: node,
context,
filenamePath,
errorMessageId: "prohibitedSelectorExport",
Expand Down

0 comments on commit bf236ae

Please sign in to comment.