0.3.2 • Published 1 year ago
@anisotropy/eslint-plugin-stratified-design v0.3.2
eslint-plugin-stratified-design
ESlint rules for stratified design. It is inspired by "Grokking Simplicity" written by Erick Normand and for practicing stratified design.
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install @anisotropy/eslint-plugin-stratified-design
:
npm install @anisotropy/eslint-plugin-stratified-design --save-dev
Usage
Add @anisotropy/stratified-design
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
:
{
"plugins": ["@anisotropy/stratified-design"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"@anisotropy/stratified-design/rule-name": ["error"]
}
}
Supported Rules
- lower-level-imports: Require that lower level modules be imported
- no-same-level-funcs: Disallow calling functions in the same file