eslint-plugin-big-react-app-plugin 0.2.8 → 0.2.9

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.
@@ -39,15 +39,16 @@ module.exports = {
39
39
  if(shouldBeRelative(fromFilename, importTo)) {
40
40
  context.report({node:
41
41
  node,
42
- message: 'В рамках одного слайса все пути должны быть относительными'});
42
+ message: 'В рамках одного слайса все пути должны быть относительными',
43
43
  fix:(fixer)=>{
44
44
  const normalizedPath = getNormalizedFilePath(fromFilename).split('/').slice(0, -1).join('/')//enteties/Article/Artcile.tsx файл в который делаем импорт и также убираем концовку
45
45
  let relativePath = path.relative(normalizedPath, `/${importTo}`).split('\\').join('/')
46
46
  if(!relativePath.startsWith('.')){
47
47
  relativePath = './' + relativePath
48
- }
48
+ }
49
49
  return fixer.replaceText(node.source, `'${relativePath}'`)
50
50
  }
51
+ })
51
52
  }
52
53
  }
53
54
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-big-react-app-plugin",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "plugin for prod proj",
5
5
  "keywords": [
6
6
  "eslint",