mirror of
https://github.com/vector-im/element-call.git
synced 2026-03-28 06:50:26 +00:00
Lint rule to disallow deep imports from matrix-js-sdk/src/matrixrtc/*
This commit is contained in:
@@ -45,6 +45,17 @@ module.exports = {
|
||||
// To encourage good usage of RxJS:
|
||||
"rxjs/no-exposed-subjects": "error",
|
||||
"rxjs/finnish": "error",
|
||||
"import/no-restricted-imports": [
|
||||
"error",
|
||||
{
|
||||
patterns: [
|
||||
{
|
||||
regex: "matrix-js-sdk/src/matrixrtc/.*",
|
||||
message: "Use the matrix-js-sdk/src/matrixrtc entrypoint instead.",
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
settings: {
|
||||
react: {
|
||||
|
||||
Reference in New Issue
Block a user