You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'app/lib must not reach into the application. A module that needs the database, the queue, config or the request lifecycle belongs in app/services as a *Service.'
exportdefault[
...configApp(...react),
/**
* `app/lib` holds modules that do not reach into the application: everything
* they need arrives as an argument. Enforcing that here keeps the boundary
* from eroding one convenient import at a time, and keeps the dependency
* direction one-way — services may use lib, never the reverse.
*/
{
files: ['app/lib/**/*.ts'],
rules: {
'no-restricted-imports': [
'error',
{
patterns: [
{
// Matched by regex, not by glob: minimatch reads a leading `#` as
// a comment, so a `#models/**` group would silently match nothing.