eslint-plugin-advanced-app 0.0.2 → 0.0.3

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.
@@ -8,6 +8,7 @@ module.exports = {
8
8
  type: null, // `problem`, `suggestion`, or `layout`
9
9
  docs: {
10
10
  description: "feature sliced relative path checker",
11
+ category: "Fill me in",
11
12
  recommended: false,
12
13
  url: null, // URL to the documentation page for this rule
13
14
  },
@@ -60,7 +61,7 @@ function shouldBeRelative(from, to) {
60
61
 
61
62
  const normalizedPath = path.toNamespacedPath(from);
62
63
  const projectFrom = normalizedPath.split('src')[1];
63
- const fromArray = projectFrom.split('\\')
64
+ const fromArray = projectFrom.split(/\\|\//)
64
65
 
65
66
  const fromLayer = fromArray[1];
66
67
  const fromSlice = fromArray[2];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-advanced-app",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "custom plugin for check fsd import",
5
5
  "keywords": [
6
6
  "eslint",