eslint-plugin-big-react-app-plugin 0.1.7 → 0.1.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.
Files changed (29) hide show
  1. package/.history/lib/rules/public-api-imports_20251029144926.js +0 -1
  2. package/.history/lib/rules/public-api-imports_20251029144953.js +0 -1
  3. package/.history/lib/rules/public-api-imports_20251029145009.js +0 -1
  4. package/.history/lib/rules/public-api-imports_20251029145022.js +0 -1
  5. package/.history/lib/rules/public-api-imports_20251029145049.js +0 -1
  6. package/.history/lib/rules/public-api-imports_20251030070810.js +76 -0
  7. package/.history/lib/rules/public-api-imports_20251030070822.js +76 -0
  8. package/.history/lib/rules/public-api-imports_20251030072017.js +77 -0
  9. package/.history/lib/rules/public-api-imports_20251030072333.js +76 -0
  10. package/.history/lib/rules/public-api-imports_20251030072413.js +76 -0
  11. package/.history/lib/rules/public-api-imports_20251030072442.js +76 -0
  12. package/.history/lib/rules/public-api-imports_20251030072512.js +76 -0
  13. package/.history/lib/rules/public-api-imports_20251030073010.js +77 -0
  14. package/.history/lib/rules/public-api-imports_20251030073013.js +77 -0
  15. package/.history/lib/rules/public-api-imports_20251030073246.js +77 -0
  16. package/.history/package_20251030070953.json +33 -0
  17. package/.history/package_20251030073306.json +33 -0
  18. package/.history/tests/lib/rules/path-checker_20251030070901.js +44 -0
  19. package/.history/tests/lib/rules/public-api-imports_20251030070849.js +96 -0
  20. package/.history/tests/lib/rules/public-api-imports_20251030071316.js +96 -0
  21. package/.history/tests/lib/rules/public-api-imports_20251030071331.js +96 -0
  22. package/.history/tests/lib/rules/public-api-imports_20251030073042.js +96 -0
  23. package/.history/tests/lib/rules/public-api-imports_20251030073103.js +96 -0
  24. package/.history/tests/lib/rules/public-api-imports_20251030073107.js +96 -0
  25. package/.history/tests/lib/rules/public-api-imports_20251030073112.js +96 -0
  26. package/lib/rules/public-api-imports.js +3 -2
  27. package/package.json +1 -1
  28. package/tests/lib/rules/path-checker.js +32 -32
  29. package/tests/lib/rules/public-api-imports.js +23 -23
@@ -65,7 +65,6 @@ module.exports = {
65
65
  if(isTestingPublicApi){
66
66
  const currentFilePath = context.getFilename();
67
67
  const isCurrentFileTesting = testFilesPatterns.some(pattern=>micromatch.isMatch(currentFilePath, pattern))
68
- console.log("Работает")
69
68
  if(!isCurrentFileTesting){
70
69
  context.report({node: node, message: 'Тестовые данные необходимо импортировать из publicApi/testing.ts'});
71
70
  }
@@ -66,7 +66,6 @@ module.exports = {
66
66
  const currentFilePath = context.getFilename();
67
67
  const isCurrentFileTesting = testFilesPatterns.some(pattern=>micromatch.isMatch(currentFilePath, pattern))
68
68
  if(!isCurrentFileTesting){
69
- console.log("Работает")
70
69
  context.report({node: node, message: 'Тестовые данные необходимо импортировать из publicApi/testing.ts'});
71
70
  }
72
71
  }
@@ -48,7 +48,6 @@ module.exports = {
48
48
  //[enteties, article, ... далее еще что-то может быть]
49
49
  const segments = importTo.split('/')
50
50
  const layer = segments[0]//получаем слой
51
- console.log("Работает")
52
51
  // проверяем что есть слой из массива
53
52
 
54
53
  //[enteties, article, testing]
@@ -63,7 +63,6 @@ module.exports = {
63
63
  }
64
64
 
65
65
  if(isTestingPublicApi){
66
- console.log("Работает")
67
66
  const currentFilePath = context.getFilename();
68
67
  const isCurrentFileTesting = testFilesPatterns.some(pattern=>micromatch.isMatch(currentFilePath, pattern))
69
68
  if(!isCurrentFileTesting){
@@ -63,7 +63,6 @@ module.exports = {
63
63
  }
64
64
 
65
65
  if(isTestingPublicApi){
66
- console.log("Работает")
67
66
  const currentFilePath = context.getFilename();
68
67
  const isCurrentFileTesting = testFilesPatterns.some(pattern=>micromatch.isMatch(currentFilePath, pattern))
69
68
  if(!isCurrentFileTesting){
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+ const micromatch = require("micromatch");
3
+ const {isPathRelative} = require("../helpers")
4
+ const path = require("path");
5
+ module.exports = {
6
+ meta: {
7
+ type: null,
8
+ docs: {
9
+ description: "description",
10
+ category: "Fill me in",
11
+ recommended: false,
12
+ url: null,
13
+ },
14
+ fixable: null,
15
+ schema: [
16
+ {
17
+ type: 'object',
18
+ properties: {
19
+ alias: {
20
+ type: 'string'
21
+ },
22
+ testFilesPatterns: {
23
+ type: 'array'
24
+ }
25
+ }
26
+ }
27
+ ],
28
+ },
29
+
30
+
31
+ create(context) {
32
+ const checkingLayers = {
33
+ "entities":"entities",
34
+ "features":"features",
35
+ "pages":"pages",
36
+ "widgets":"widgets",
37
+ }
38
+ const {alias='', testFilesPatterns=[]} = context.options[0] ?? {};
39
+ return {
40
+ ImportDeclaration(node) {
41
+ // example app/entities/Article
42
+ const value = node.source.value;
43
+ const importTo = alias ? value.replace(`${alias}/`, "") : value;
44
+ //если путь относительный то выходим
45
+ if(isPathRelative(importTo)){
46
+ return;
47
+ }
48
+ //[enteties, article, ... далее еще что-то может быть]
49
+ const segments = importTo.split('/')
50
+ const layer = segments[0]//получаем слой
51
+ // проверяем что есть слой из массива
52
+
53
+ //[enteties, article, testing]
54
+ const isTestingPublicApi = segments[2] === 'testing' && segments.length < 4;
55
+
56
+ if(!checkingLayers[layer]){
57
+ return;
58
+ }
59
+ const isImportNotFromPublicApi = segments.length > 2;
60
+
61
+ if(isImportNotFromPublicApi && !isTestingPublicApi ) {
62
+ context.report({node: node, message: 'Абсолютный импорт разрешен только из Public API (index.ts)'});
63
+ }
64
+
65
+ if(isTestingPublicApi){
66
+ const currentFilePath = context.getFilename();
67
+ const normalizedPath = path.normalize(currentFilePath).replace(/\\/g, '/')
68
+ const isCurrentFileTesting = testFilesPatterns.some(pattern=>micromatch.isMatch(currentFilePath, pattern))
69
+ if(!isCurrentFileTesting){
70
+ context.report({node: node, message: 'Тестовые данные необходимо импортировать из publicApi/testing.ts'});
71
+ }
72
+ }
73
+ }
74
+ };
75
+ },
76
+ };
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+ const micromatch = require("micromatch");
3
+ const {isPathRelative} = require("../helpers")
4
+ const path = require("path");
5
+ module.exports = {
6
+ meta: {
7
+ type: null,
8
+ docs: {
9
+ description: "description",
10
+ category: "Fill me in",
11
+ recommended: false,
12
+ url: null,
13
+ },
14
+ fixable: null,
15
+ schema: [
16
+ {
17
+ type: 'object',
18
+ properties: {
19
+ alias: {
20
+ type: 'string'
21
+ },
22
+ testFilesPatterns: {
23
+ type: 'array'
24
+ }
25
+ }
26
+ }
27
+ ],
28
+ },
29
+
30
+
31
+ create(context) {
32
+ const checkingLayers = {
33
+ "entities":"entities",
34
+ "features":"features",
35
+ "pages":"pages",
36
+ "widgets":"widgets",
37
+ }
38
+ const {alias='', testFilesPatterns=[]} = context.options[0] ?? {};
39
+ return {
40
+ ImportDeclaration(node) {
41
+ // example app/entities/Article
42
+ const value = node.source.value;
43
+ const importTo = alias ? value.replace(`${alias}/`, "") : value;
44
+ //если путь относительный то выходим
45
+ if(isPathRelative(importTo)){
46
+ return;
47
+ }
48
+ //[enteties, article, ... далее еще что-то может быть]
49
+ const segments = importTo.split('/')
50
+ const layer = segments[0]//получаем слой
51
+ // проверяем что есть слой из массива
52
+
53
+ //[enteties, article, testing]
54
+ const isTestingPublicApi = segments[2] === 'testing' && segments.length < 4;
55
+
56
+ if(!checkingLayers[layer]){
57
+ return;
58
+ }
59
+ const isImportNotFromPublicApi = segments.length > 2;
60
+
61
+ if(isImportNotFromPublicApi && !isTestingPublicApi ) {
62
+ context.report({node: node, message: 'Абсолютный импорт разрешен только из Public API (index.ts)'});
63
+ }
64
+
65
+ if(isTestingPublicApi){
66
+ const currentFilePath = context.getFilename();
67
+ const normalizedPath = path.normalize(currentFilePath).replace(/\\/g, '/')
68
+ const isCurrentFileTesting = testFilesPatterns.some(pattern=>micromatch.isMatch(normalizedPath, pattern))
69
+ if(!isCurrentFileTesting){
70
+ context.report({node: node, message: 'Тестовые данные необходимо импортировать из publicApi/testing.ts'});
71
+ }
72
+ }
73
+ }
74
+ };
75
+ },
76
+ };
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ const micromatch = require("micromatch");
3
+ const {isPathRelative} = require("../helpers")
4
+ const path = require("path");
5
+ module.exports = {
6
+ meta: {
7
+ type: null,
8
+ docs: {
9
+ description: "description",
10
+ category: "Fill me in",
11
+ recommended: false,
12
+ url: null,
13
+ },
14
+ fixable: null,
15
+ schema: [
16
+ {
17
+ type: 'object',
18
+ properties: {
19
+ alias: {
20
+ type: 'string'
21
+ },
22
+ testFilesPatterns: {
23
+ type: 'array'
24
+ }
25
+ }
26
+ }
27
+ ],
28
+ },
29
+
30
+
31
+ create(context) {
32
+ const checkingLayers = {
33
+ "entities":"entities",
34
+ "features":"features",
35
+ "pages":"pages",
36
+ "widgets":"widgets",
37
+ }
38
+ const {alias='', testFilesPatterns=[]} = context.options[0] ?? {};
39
+ return {
40
+ ImportDeclaration(node) {
41
+ // example app/entities/Article
42
+ const value = node.source.value;
43
+ const importTo = alias ? value.replace(`${alias}/`, "") : value;
44
+
45
+ //если путь относительный то выходим
46
+ if(isPathRelative(importTo)){
47
+ return;
48
+ }
49
+ //[enteties, article, ... далее еще что-то может быть]
50
+ const segments = importTo.split('/')
51
+ const layer = segments[0]//получаем слой
52
+ // проверяем что есть слой из массива
53
+
54
+ //[enteties, article, testing]
55
+ const isTestingPublicApi = segments[2] === 'testing' && segments.length < 4;
56
+
57
+ if(!checkingLayers[layer]){
58
+ return;
59
+ }
60
+ const isImportNotFromPublicApi = segments.length > 2;
61
+
62
+ if(isImportNotFromPublicApi && !isTestingPublicApi ) {
63
+ context.report({node: node, message: 'Абсолютный импорт разрешен только из Public API (index.ts)'});
64
+ }
65
+
66
+ if(isTestingPublicApi){
67
+ const currentFilePath = context.getFilename();
68
+ const normalizedPath = path.normalize(currentFilePath).replace(/\\/g, '/')
69
+ const isCurrentFileTesting = testFilesPatterns.some(pattern=>micromatch.isMatch(normalizedPath, pattern))
70
+ if(!isCurrentFileTesting){
71
+ context.report({node: node, message: 'Тестовые данные необходимо импортировать из publicApi/testing.ts'});
72
+ }
73
+ }
74
+ }
75
+ };
76
+ },
77
+ };
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+ const micromatch = require("micromatch");
3
+ const {isPathRelative} = require("../helpers")
4
+ const path = require("path");
5
+ module.exports = {
6
+ meta: {
7
+ type: null,
8
+ docs: {
9
+ description: "description",
10
+ category: "Fill me in",
11
+ recommended: false,
12
+ url: null,
13
+ },
14
+ fixable: null,
15
+ schema: [
16
+ {
17
+ type: 'object',
18
+ properties: {
19
+ alias: {
20
+ type: 'string'
21
+ },
22
+ testFilesPatterns: {
23
+ type: 'array'
24
+ }
25
+ }
26
+ }
27
+ ],
28
+ },
29
+
30
+
31
+ create(context) {
32
+ const checkingLayers = {
33
+ "entities":"entities",
34
+ "features":"features",
35
+ "pages":"pages",
36
+ "widgets":"widgets",
37
+ }
38
+ const {alias='', testFilesPatterns=[]} = context.options[0] ?? {};
39
+ return {
40
+ ImportDeclaration(node) {
41
+ // example app/entities/Article
42
+ const value = node.source.value;
43
+ const importTo = alias ? value.replace(`${alias}/`, "") : value;
44
+
45
+ //если путь относительный то выходим
46
+ if(isPathRelative(importTo)){
47
+ return;
48
+ }
49
+ //[enteties, article, ... далее еще что-то может быть]
50
+ const segments = importTo.split('/')
51
+ const layer = segments[0]//получаем слой
52
+ // проверяем что есть слой из массива
53
+
54
+ //[enteties, article, testing]
55
+ const isTestingPublicApi = segments[2] === 'testing' && segments.length < 4;
56
+
57
+ if(!checkingLayers[layer]){
58
+ return;
59
+ }
60
+ const isImportNotFromPublicApi = segments.length > 2;
61
+
62
+ if(isImportNotFromPublicApi && !isTestingPublicApi ) {
63
+ context.report({node: node, message: 'Абсолютный импорт разрешен только из Public API (index.ts)'});
64
+ }
65
+
66
+ if(isTestingPublicApi){
67
+ const currentFilePath = context.getFilename();
68
+ const isCurrentFileTesting = testFilesPatterns.some(pattern=>micromatch.isMatch(currentFilePath, pattern))
69
+ if(!isCurrentFileTesting){
70
+ context.report({node: node, message: 'Тестовые данные необходимо импортировать из publicApi/testing.ts'});
71
+ }
72
+ }
73
+ }
74
+ };
75
+ },
76
+ };
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+ const micromatch = require("micromatch");
3
+ const {isPathRelative} = require("../helpers")
4
+ const path = require("path");
5
+ module.exports = {
6
+ meta: {
7
+ type: null,
8
+ docs: {
9
+ description: "description",
10
+ category: "Fill me in",
11
+ recommended: false,
12
+ url: null,
13
+ },
14
+ fixable: null,
15
+ schema: [
16
+ {
17
+ type: 'object',
18
+ properties: {
19
+ alias: {
20
+ type: 'string'
21
+ },
22
+ testFilesPatterns: {
23
+ type: 'array'
24
+ }
25
+ }
26
+ }
27
+ ],
28
+ },
29
+
30
+
31
+ create(context) {
32
+ const checkingLayers = {
33
+ "entities":"entities",
34
+ "features":"features",
35
+ "pages":"pages",
36
+ "widgets":"widgets",
37
+ }
38
+ const {alias='', testFilesPatterns=[]} = context.options[0] ?? {};
39
+ return {
40
+ ImportDeclaration(node) {
41
+ // example app/entities/Article
42
+ const value = node.source.value;
43
+ const importTo = alias ? value.replace(`${alias}/`, "") : value;
44
+
45
+ //если путь относительный то выходим
46
+ if(isPathRelative(importTo)){
47
+ return;
48
+ }
49
+ //[enteties, article, ... далее еще что-то может быть]
50
+ const segments = importTo.split('/')
51
+ const layer = segments[0]//получаем слой
52
+ // проверяем что есть слой из массива
53
+
54
+ //[enteties, article, testing]
55
+ const isTestingPublicApi = segments[2] === 'testing' && segments.length < 4;
56
+
57
+ if(!checkingLayers[layer]){
58
+ return;
59
+ }
60
+ const isImportNotFromPublicApi = segments.length > 2;
61
+
62
+ if(isImportNotFromPublicApi && !isTestingPublicApi ) {
63
+ context.report({node: node, message: 'Абсолютный импорт разрешен только из Public API (index.ts)'});
64
+ }
65
+
66
+ if(isTestingPublicApi){
67
+ const currentFilePath = context.getFilename();
68
+ const isCurrentFileTesting = testFilesPatterns.some(pattern=>micromatch.isMatch(currentFilePath, pattern))
69
+ if(!isCurrentFileTesting){
70
+ context.report({node: node, message: 'Тестовые данные необходимо импортировать из publicApi/testing.ts'});
71
+ }
72
+ }
73
+ }
74
+ };
75
+ },
76
+ };
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+ const micromatch = require("micromatch");
3
+ const {isPathRelative} = require("../helpers")
4
+ const path = require("path");
5
+ module.exports = {
6
+ meta: {
7
+ type: null,
8
+ docs: {
9
+ description: "description",
10
+ category: "Fill me in",
11
+ recommended: false,
12
+ url: null,
13
+ },
14
+ fixable: null,
15
+ schema: [
16
+ {
17
+ type: 'object',
18
+ properties: {
19
+ alias: {
20
+ type: 'string'
21
+ },
22
+ testFilesPatterns: {
23
+ type: 'array'
24
+ }
25
+ }
26
+ }
27
+ ],
28
+ },
29
+
30
+
31
+ create(context) {
32
+ const checkingLayers = {
33
+ "entities":"entities",
34
+ "features":"features",
35
+ "pages":"pages",
36
+ "widgets":"widgets",
37
+ }
38
+ const {alias='', testFilesPatterns=[]} = context.options[0] ?? {};
39
+ return {
40
+ ImportDeclaration(node) {
41
+ // example app/entities/Article
42
+ const value = node.source.value;
43
+ const importTo = alias ? value.replace(`${alias}/`, "") : value;
44
+
45
+ //если путь относительный то выходим
46
+ if(isPathRelative(importTo)){
47
+ return;
48
+ }
49
+ //[enteties, article, ... далее еще что-то может быть]
50
+ const segments = importTo.split('/')
51
+ const layer = segments[0]//получаем слой
52
+ // проверяем что есть слой из массива
53
+
54
+ //[enteties, article, testing]
55
+ const isTestingPublicApi = segments[2] === 'testing';
56
+
57
+ if(!checkingLayers[layer]){
58
+ return;
59
+ }
60
+ const isImportNotFromPublicApi = segments.length > 2;
61
+
62
+ if(isImportNotFromPublicApi && !isTestingPublicApi ) {
63
+ context.report({node: node, message: 'Абсолютный импорт разрешен только из Public API (index.ts)'});
64
+ }
65
+
66
+ if(isTestingPublicApi){
67
+ const currentFilePath = context.getFilename();
68
+ const isCurrentFileTesting = testFilesPatterns.some(pattern=>micromatch.isMatch(currentFilePath, pattern))
69
+ if(!isCurrentFileTesting){
70
+ context.report({node: node, message: 'Тестовые данные необходимо импортировать из publicApi/testing.ts'});
71
+ }
72
+ }
73
+ }
74
+ };
75
+ },
76
+ };
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+ const micromatch = require("micromatch");
3
+ const {isPathRelative} = require("../helpers")
4
+ const path = require("path");
5
+ module.exports = {
6
+ meta: {
7
+ type: null,
8
+ docs: {
9
+ description: "description",
10
+ category: "Fill me in",
11
+ recommended: false,
12
+ url: null,
13
+ },
14
+ fixable: null,
15
+ schema: [
16
+ {
17
+ type: 'object',
18
+ properties: {
19
+ alias: {
20
+ type: 'string'
21
+ },
22
+ testFilesPatterns: {
23
+ type: 'array'
24
+ }
25
+ }
26
+ }
27
+ ],
28
+ },
29
+
30
+
31
+ create(context) {
32
+ const checkingLayers = {
33
+ "entities":"entities",
34
+ "features":"features",
35
+ "pages":"pages",
36
+ "widgets":"widgets",
37
+ }
38
+ const {alias='', testFilesPatterns=[]} = context.options[0] ?? {};
39
+ return {
40
+ ImportDeclaration(node) {
41
+ // example app/entities/Article
42
+ const value = node.source.value;
43
+ const importTo = alias ? value.replace(`${alias}/`, "") : value;
44
+
45
+ //если путь относительный то выходим
46
+ if(isPathRelative(importTo)){
47
+ return;
48
+ }
49
+ //[enteties, article, ... далее еще что-то может быть]
50
+ const segments = importTo.split('/')
51
+ const layer = segments[0]//получаем слой
52
+ // проверяем что есть слой из массива
53
+
54
+ //[enteties, article, testing]
55
+ const isTestingPublicApi = segments[2] === 'testing';
56
+
57
+ if(!checkingLayers[layer]){
58
+ return;
59
+ }
60
+ const isImportNotFromPublicApi = segments.length > 2;
61
+
62
+ if(isImportNotFromPublicApi && !isTestingPublicApi ) {
63
+ context.report({node: node, message: 'Абсолютный импорт разрешен только из Public API (index.ts)'});
64
+ }
65
+
66
+ if(isTestingPublicApi){
67
+ const currentFilePath = context.getFilename();
68
+ const isCurrentFileTesting = testFilesPatterns.some(pattern=>micromatch.isMatch(currentFilePath, pattern))
69
+ if(!isCurrentFileTesting){
70
+ context.report({node: node, message: 'Тестовые данные необходимо импортировать из publicApi/testing.ts'});
71
+ }
72
+ }
73
+ }
74
+ };
75
+ },
76
+ };
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ const micromatch = require("micromatch");
3
+ const {isPathRelative} = require("../helpers")
4
+ const path = require("path");
5
+ module.exports = {
6
+ meta: {
7
+ type: null,
8
+ docs: {
9
+ description: "description",
10
+ category: "Fill me in",
11
+ recommended: false,
12
+ url: null,
13
+ },
14
+ fixable: null,
15
+ schema: [
16
+ {
17
+ type: 'object',
18
+ properties: {
19
+ alias: {
20
+ type: 'string'
21
+ },
22
+ testFilesPatterns: {
23
+ type: 'array'
24
+ }
25
+ }
26
+ }
27
+ ],
28
+ },
29
+
30
+
31
+ create(context) {
32
+ const checkingLayers = {
33
+ "entities":"entities",
34
+ "features":"features",
35
+ "pages":"pages",
36
+ "widgets":"widgets",
37
+ }
38
+ const {alias='', testFilesPatterns=[]} = context.options[0] ?? {};
39
+ return {
40
+ ImportDeclaration(node) {
41
+ // example app/entities/Article
42
+ const value = node.source.value;
43
+ const importTo = alias ? value.replace(`${alias}/`, "") : value;
44
+
45
+ //если путь относительный то выходим
46
+ if(isPathRelative(importTo)){
47
+ return;
48
+ }
49
+ //[enteties, article, ... далее еще что-то может быть]
50
+ const segments = importTo.split('/')
51
+ const layer = segments[0]//получаем слой
52
+ // проверяем что есть слой из массива
53
+
54
+ //[enteties, article, testing]
55
+ const isTestingPublicApi = segments[2] === 'testing';
56
+
57
+ if(!checkingLayers[layer]){
58
+ return;
59
+ }
60
+ const isImportNotFromPublicApi = segments.length > 2;
61
+
62
+ if(isImportNotFromPublicApi && !isTestingPublicApi ) {
63
+ context.report({node: node, message: 'Абсолютный импорт разрешен только из Public API (index.ts)'});
64
+ }
65
+
66
+ if(isTestingPublicApi){
67
+ const currentFilePath = context.getFilename();
68
+ const normalizedPath = currentFilePath.split(path.sep).join('/');
69
+ const isCurrentFileTesting = testFilesPatterns.some(pattern=>micromatch.isMatch(currentFilePath, pattern))
70
+ if(!isCurrentFileTesting){
71
+ context.report({node: node, message: 'Тестовые данные необходимо импортировать из publicApi/testing.ts'});
72
+ }
73
+ }
74
+ }
75
+ };
76
+ },
77
+ };