Commit 1b2f282
chore: align ESLint rules with the monorepo's portable ruleset
Port the portable, non-custom, non-React rules from factory-mono-alpha's
shared @factory/eslint-config into our ESLint 9 flat config, so the public
SDK enforces the same standards as the internal source of truth.
Added rules: no-empty-object-type (error), no-require-imports, no-barrel-files,
import/no-default-export, import/named, import/no-extraneous-dependencies,
import/extensions, eslint-comments/no-unused-disable, no-void, default-case,
no-constant-condition, no-param-reassign, no-promise-executor-return,
prefer-promise-reject-errors, prefer-arrow-callback, no-restricted-syntax
(incl. ExportAllDeclaration ban), and vitest/expect-expect + valid-expect
for tests.
Excluded the monorepo's factory/* custom-plugin rules (not installable from
npm) and React/Next rules (no React here). Refactored to comply: deleted the
unused src/protocol/index.ts export* barrel and converted src/index.ts to
explicit named re-exports. Public-API barrels are exempted from no-barrel-files
(matching the monorepo's index.ts exemption). Fixed all resulting violations.
New devDeps: eslint-plugin-no-barrel-files, eslint-plugin-eslint-comments,
@vitest/eslint-plugin.
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>1 parent 71ab8d8 commit 1b2f282
27 files changed
Lines changed: 1361 additions & 95 deletions
File tree
- examples
- src
- daemon
- tests
- daemon
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | 8 | | |
| |||
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| 17 | + | |
| 18 | + | |
14 | 19 | | |
15 | 20 | | |
16 | 21 | | |
| |||
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
39 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
40 | 81 | | |
41 | 82 | | |
42 | 83 | | |
| |||
61 | 102 | | |
62 | 103 | | |
63 | 104 | | |
| 105 | + | |
64 | 106 | | |
65 | 107 | | |
66 | 108 | | |
67 | 109 | | |
68 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
69 | 114 | | |
70 | 115 | | |
71 | 116 | | |
72 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
73 | 123 | | |
74 | 124 | | |
75 | 125 | | |
| |||
79 | 129 | | |
80 | 130 | | |
81 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
82 | 166 | | |
83 | 167 | | |
84 | 168 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| |||
0 commit comments