Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

eslint: Forbid imports from outside shared in shared.

Anders Kaseorg0ed9a0fc58b7
diff --git a/.eslintrc.json b/.eslintrc.json
index f2f43f14e7b..3d302880506 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -386,6 +386,20 @@
"browser": false,
"commonjs": false,
"shared-node-browser": true
+ },
+ "rules": {
+ "import/no-restricted-paths": [
+ "error",
+ {
+ "zones": [
+ {
+ "target": "./static/shared",
+ "from": ".",
+ "except": ["./node_modules", "./static/shared"]
+ }
+ ]
+ }
+ ]
}
}
]