Skip to content

Instantly share code, notes, and snippets.

module.exports = {
forbidden: [
{
name: "no-pages-on-pages",
severity: "warn",
comment: "Page MUST not depends on another page.",
from: { path: "^src/pages/([^/]+)/?.+", pathNot: "^src/pages/(routes|paths).ts" },
to: { path: "^src/pages/(?!$1)/?.+", pathNot: "^src/pages/(routes|paths).ts" },
},
{