eslint-plugin-big-react-app-plugin 0.0.4 → 0.0.6

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.
@@ -53,7 +53,8 @@ const shouldBeRelative = (from, to)=>{
53
53
  }
54
54
  //нормализуем путь
55
55
  const normalizationPath = path.toNamespacedPath(from);
56
- const fromArray = normalizationPath.split('\\')[1]
56
+ const projFrom = normalizationPath.split('src')[1]
57
+ const fromArray = projFrom.split('\\')
57
58
 
58
59
  const fromLayer = fromArray[1];
59
60
  const fromSlice = fromArray[2];
@@ -63,5 +64,5 @@ const shouldBeRelative = (from, to)=>{
63
64
  return toSlice === fromSlice && toLayer === fromLayer
64
65
  }
65
66
  const pathRelative = (path)=>{
66
- return path = path.startWith('.' || './' || './/')
67
+ return path = path.startsWith('.' || './' || './/')
67
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-big-react-app-plugin",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "plugin for prod proj",
5
5
  "keywords": [
6
6
  "eslint",