eslint-plugin-big-react-app-plugin 0.2.6 → 0.2.8
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.
|
@@ -12,7 +12,7 @@ module.exports = {
|
|
|
12
12
|
recommended: false,
|
|
13
13
|
url: null,
|
|
14
14
|
},
|
|
15
|
-
fixable:
|
|
15
|
+
fixable: 'code',
|
|
16
16
|
schema: [
|
|
17
17
|
{
|
|
18
18
|
type:"object",
|
|
@@ -61,7 +61,7 @@ const layers = {
|
|
|
61
61
|
"shared":"shared",
|
|
62
62
|
"widgets":"widgets",
|
|
63
63
|
}
|
|
64
|
-
function getNormalizedFilePath
|
|
64
|
+
function getNormalizedFilePath (from){
|
|
65
65
|
const normalizationPath = path.toNamespacedPath(from);
|
|
66
66
|
const projFrom = normalizationPath.split('src')[1]
|
|
67
67
|
return projFrom.split('\\').join('/')
|
|
@@ -80,7 +80,7 @@ function shouldBeRelative (from, to){
|
|
|
80
80
|
}
|
|
81
81
|
//нормализуем путь
|
|
82
82
|
const projFrom = getNormalizedFilePath(from)
|
|
83
|
-
const fromArray = projFrom.split('
|
|
83
|
+
const fromArray = projFrom.split('/')
|
|
84
84
|
|
|
85
85
|
const fromLayer = fromArray[1];
|
|
86
86
|
const fromSlice = fromArray[2];
|