Socket
Book a DemoInstallSign in
Socket

@zohodesk/eslint-plugin-architecturerules

Package Overview
Dependencies
Maintainers
0
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zohodesk/eslint-plugin-architecturerules

architecture rules

latest
npmnpm
Version
0.0.6
Version published
Maintainers
0
Created
Source

💼 Configuration

NameDescription
import-dependenciesThe outer layer must not directly use or import functionalities from the inner layer. Interaction with the inner layer should strictly occur through defined interfaces.
spinal-case-folderEnforce folder name to be in spinal-case (kebab-case)(kebab-case).
pascal-case-fileEnforce file name to be in PascalCase
no-external-libraryAvoid using external libraries in layers where their use is restricted.
no-commentsComments are not permitted in the source code. If comments are necessary, use block comments in the format.
no-unused-varsVariables that are declared and not used anywhere in the code.
return-voidFunction expression must return void.
exceed-line-codeEnsure that file length should have specific length.
no-defaultpropsDo not use logical expressions to initialize properties.
should-implementEvery class must implement or extend an interface, explicitly or implicitly.
no-businesslogicEnsure That there is no Business logic .
define-property-schemaThe declaration of a variable should specify its type explicitly, and the use of any or object should be avoided.
snake-case-identifierIdentifier should be SNAKE_CASE
type-should-be-constantTypes should always use the CONSTANT naming style.
path-aliasDon't use path alias in current directory files path impots. use in appropriate imports alias.
no-nested-propertyDo not access nested properties directly. Always use destructuring to extract and use required properties.
single-factoryEach entity should have its own dedicated factory for creation. Avoid creating multiple entities within a single factory class or class
no-hook-usedReact hooks must not be used or invoked directly
define-contract-schemaDefine property contract schema properly. Avoid any or object type.
method-not-invokeEnsure that violated method should not invoked
avoid-deprecated-methodDo not use methods or functions that are marked as deprecated
avoid-local-stateDo not reassign, manipulate, or update the state directly without utilizing native methods or utilities provided by the framework.
proper-action-definitionShould have Action Type default export
file-structure-validationShould Have a Proper Folder Structure
proper-action-usageAvoid using console statements in the source code.
destructuring-propsProper destructure usage in jsx or tsx expression container
method-contractdeclare method based on define contract
import-requireimport required
proper-exportexport properly

FAQs

Package last updated on 23 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts