mirror of
https://github.com/vector-im/element-call.git
synced 2026-07-18 18:59:23 +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:
|
// To encourage good usage of RxJS:
|
||||||
"rxjs/no-exposed-subjects": "error",
|
"rxjs/no-exposed-subjects": "error",
|
||||||
"rxjs/finnish": "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: {
|
settings: {
|
||||||
react: {
|
react: {
|
||||||
|
|||||||
Reference in New Issue
Block a user