A plugin that helps you to enforce hexagonal architecture best practises
A plugin that helps you to enforce hexagonal architecture best practises. Valid for your JavaScript or TypeScript projects π€ Stars are welcome π
domain
, application
and infrastructure
are valid folder names (under the glob pattern you specify)domain
can only import files from the same folderapplication
can only import from application
and domain
infrastructure
can import from application
, domain
and infrastructure
npm install --save-dev eslint-plugin-hexagonal-architecture
.eslintrc.js
file:
{
plugins: ["hexagonal-architecture"],
}
{
overrides: [
{
files: ["contexts/{backend,frontend}/*/src/**/*.ts"],
rules: {
"hexagonal-architecture/enforce": ["error"],
},
},
]
}
Publishing this package we are committing ourselves to the following code quality standards:
Opinionated skeletons ready for different purposes: