@dilmune/eslint-plugin-forma
v0.1.1
Published
ESLint rules for Forma — Feature-Controller-Service architecture
Maintainers
Readme
@dilmune/eslint-plugin-forma
ESLint rules for Forma — enforces Feature-Controller-Service architecture in React.
Install
npm install -D @dilmune/eslint-plugin-formaUsage
// .eslintrc.cjs
{
"plugins": ["@dilmune/forma"],
"extends": ["plugin:@dilmune/forma/recommended"]
}Rules
| Rule | Default |
|------|---------|
| @dilmune/forma/no-hooks-in-page | error |
| @dilmune/forma/no-logic-in-page | warn |
| @dilmune/forma/types-in-barrel | warn |
| @dilmune/forma/service-singleton | error |
| @dilmune/forma/controller-naming | warn |
| @dilmune/forma/feature-boundary | warn |
See the main repo for full documentation.
