eslint-plugin-stratified-design 0.6.1-beta → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -66,6 +66,12 @@ If you want to register the level of a layer by 'number,' set the option `useLev
66
66
 
67
67
  The options `structure` and `useLevelNumber` can be used together.
68
68
 
69
+ An `index.xxx` file can be the highest level layer when the option `isIndexHighest` is set to `true`:
70
+
71
+ ```json
72
+ "lower-level-imports": ["error", { "isIndexHighest": true }]
73
+ ```
74
+
69
75
  You can register the files to apply the rule (`lower-level-imports`) using the `include` and `exclude` options:
70
76
 
71
77
  ```json
@@ -180,3 +186,9 @@ import { func } from "./1 layer";
180
186
  // ./src/layer.js
181
187
  import { func } from "../layer3/entry";
182
188
  ```
189
+
190
+ ```js
191
+ /* "lower-level-imports": ["error", { "isIndexHighest": true }] */
192
+ // ./src/layer/index.js
193
+ import { func } from "./anything";
194
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-stratified-design",
3
- "version": "0.6.1-beta",
3
+ "version": "0.6.1",
4
4
  "description": "ESlint rules for stratified design",
5
5
  "keywords": [
6
6
  "eslint",