mirror of https://github.com/zulip/zulip.git
eslint: Forbid imports from outside shared in shared.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
7727dae441
commit
0ed9a0fc58
|
@ -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"]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue