@yasainet/eslint 0.0.26 → 0.0.27

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yasainet/eslint",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "description": "ESLint",
5
5
  "type": "module",
6
6
  "exports": {
@@ -27,8 +27,9 @@ export const denoImportsConfigs = [
27
27
  },
28
28
  },
29
29
  {
30
- name: "deno/commands-entry-point",
31
- files: [`${FUNCTIONS_ROOT}/commands/**/*.ts`],
30
+ name: "deno/entry-point",
31
+ files: [`${FUNCTIONS_ROOT}/**/*.ts`],
32
+ ignores: [`${FUNCTIONS_ROOT}/_*/**`],
32
33
  rules: {
33
34
  "no-restricted-imports": [
34
35
  "error",
@@ -37,17 +38,38 @@ export const denoImportsConfigs = [
37
38
  {
38
39
  group: ["**/services/*", "**/services"],
39
40
  message:
40
- "commands/ must not import services directly. Import from actions instead.",
41
+ "Entry points must not import services directly. Import from actions instead.",
41
42
  },
42
43
  {
43
44
  group: ["**/repositories/*", "**/repositories"],
44
45
  message:
45
- "commands/ must not import repositories directly. Import from actions instead.",
46
+ "Entry points must not import repositories directly. Import from actions instead.",
46
47
  },
47
48
  {
48
49
  group: ["*/_lib/*", "*/_lib/**"],
49
50
  message:
50
- "commands/ must not import _lib/ directly. Import from actions instead.",
51
+ "Entry points must not import _lib/ directly. Import from actions instead.",
52
+ },
53
+ ],
54
+ },
55
+ ],
56
+ },
57
+ },
58
+ {
59
+ name: "deno/utils-boundary",
60
+ files: [`${FUNCTIONS_ROOT}/_utils/**/*.ts`],
61
+ rules: {
62
+ "no-restricted-imports": [
63
+ "error",
64
+ {
65
+ patterns: [
66
+ {
67
+ group: ["*/_features/*", "*/_features/**"],
68
+ message: "_utils/ cannot import _features/",
69
+ },
70
+ {
71
+ group: ["*/_lib/*", "*/_lib/**"],
72
+ message: "_utils/ cannot import _lib/",
51
73
  },
52
74
  ],
53
75
  },