eslint-plugin-laygrd-plugin 0.0.4 → 0.0.5

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.
@@ -47,7 +47,7 @@ module.exports = {
47
47
 
48
48
  // skipping relative paths like '../ui/Button/Button'
49
49
  if (isPathRelative(importSrc)) {
50
- return null;
50
+ return;
51
51
  }
52
52
 
53
53
  const segments = importSrc.split('/');
@@ -59,7 +59,7 @@ module.exports = {
59
59
  // check only declared layers from project root
60
60
  const layer = segments[0];
61
61
  if (!layersToCheck[layer]) {
62
- return null;
62
+ return;
63
63
  }
64
64
 
65
65
  if (isImportNotFromPublicApi) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-laygrd-plugin",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "some usefull fsd rule-checkers",
5
5
  "keywords": [
6
6
  "eslint",
@@ -33,6 +33,12 @@ ruleTester.run("public-api-exports", rule, {
33
33
  errors: [],
34
34
  options: [{ alias: '@' }]
35
35
  },
36
+ {
37
+ filename: 'C:\\Users\\Desktop\\Projects\\blog_app\\src\\widgets\\ThemeSwitcher\\ui\\ThemeSwitcher\\ThemeSwitcher',
38
+ code: "import { useCallback } from 'react'",
39
+ errors: [],
40
+ options: [{ alias: '@' }]
41
+ },
36
42
 
37
43
  ],
38
44