@zohodesk/eslint-plugin-architecturerules
v0.0.8
Published
architecture rules
Maintainers
Keywords
Readme
| Name | Description
| :----------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| import-dependencies | The 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-folder | Enforce folder name to be in spinal-case (kebab-case)(kebab-case).
| pascal-case-file | Enforce file name to be in PascalCase
| no-external-library | Avoid using external libraries in layers where their use is restricted.
| no-comments | Comments are not permitted in the source code. If comments are necessary, use block comments in the format.
| no-unused-vars | Variables that are declared and not used anywhere in the code.
| return-void | Function expression must return void.
| exceed-line-code | Ensure that file length should have specific length.
| no-defaultprops | Do not use logical expressions to initialize properties.
| should-implement | Every class must implement or extend an interface, explicitly or implicitly.
| no-businesslogic | Ensure That there is no Business logic .
| define-property-schema | The declaration of a variable should specify its type explicitly, and the use of any or object should be avoided.
| snake-case-identifier | Identifier should be SNAKE_CASE
| type-should-be-constant | Types should always use the CONSTANT naming style.
| path-alias | Don't use path alias in current directory files path impots. use in appropriate imports alias.
| no-nested-property | Do not access nested properties directly. Always use destructuring to extract and use required properties.
| single-factory | Each entity should have its own dedicated factory for creation. Avoid creating multiple entities within a single factory class or class
| no-hook-used | React hooks must not be used or invoked directly
| define-contract-schema | Define property contract schema properly. Avoid any or object type.
| method-not-invoke | Ensure that violated method should not invoked
| avoid-deprecated-method | Do not use methods or functions that are marked as deprecated
| avoid-local-state | Do not reassign, manipulate, or update the state directly without utilizing native methods or utilities provided by the framework.
| proper-action-definition | Should have Action Type default export
| file-structure-validation | Should Have a Proper Folder Structure
| proper-action-usage | Avoid using console statements in the source code.
| destructuring-props | Proper destructure usage in jsx or tsx expression container
| method-contract | declare method based on define contract
| import-require | import required
| proper-export | export properly
