Lint rule to disallow deep imports from matrix-js-sdk/src/matrixrtc/*

This commit is contained in:
Hugh Nimmo-Smith
2025-01-10 10:58:11 +00:00
parent 8bfdd1f455
commit 082e2383f2

View File

@@ -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: {