0.11.0 • Published 3 months ago
eslint-plugin-stratified-design v0.11.0
eslint-plugin-stratified-design
ESLint rules for stratified design, inspired by "Grokking Simplicity" written by Erick Normand, for practicing stratified design.
Installation
First, ensure you have ESLint installed:
npm i eslint --save-dev
Next, install eslint-plugin-stratified-design
:
npm install eslint-plugin-stratified-design --save-dev
Usage
Add stratified-design
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": ["stratified-design"]
}
Then configure the rules you wish to use under the rules section:
{
"rules": {
"stratified-design/[rule-name]": ["error"]
}
}
Supported Rules
- lower-level-imports: Requires lower-level modules to be imported.
- stratified-imports: Requires lower-level modules to be imported. The stratified structure is set by
.stratified.json
. - no-same-level-funcs: Disallows calling functions in the same file.
- no-disallowed-imports: Allow or disallow importing specified modules
0.11.0
3 months ago
0.10.0
3 months ago
0.9.2-beta
7 months ago
0.8.0-beta.3
9 months ago
0.8.0-beta.2
9 months ago
0.9.1-beta
8 months ago
0.9.0
8 months ago
0.8.0
9 months ago
0.9.2
7 months ago
0.9.1
8 months ago
0.9.0-beta
8 months ago
0.6.1-beta
9 months ago
0.8.0-beta.1
9 months ago
0.8.0-beta
9 months ago
0.6.0-beta
9 months ago
0.7.0
9 months ago
0.6.1
9 months ago
0.5.2
9 months ago
0.5.1
9 months ago
0.5.0
10 months ago
0.4.2
10 months ago
0.4.2-beta
10 months ago
0.4.1
10 months ago
0.4.0
10 months ago