eslint: Forbid imports from outside shared in shared.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2020-07-25 12:22:06 -07:00
parent 7727dae441
commit 0ed9a0fc58
1 changed files with 14 additions and 0 deletions

View File

@ -386,6 +386,20 @@
"browser": false, "browser": false,
"commonjs": false, "commonjs": false,
"shared-node-browser": true "shared-node-browser": true
},
"rules": {
"import/no-restricted-paths": [
"error",
{
"zones": [
{
"target": "./static/shared",
"from": ".",
"except": ["./node_modules", "./static/shared"]
}
]
}
]
} }
} }
] ]