mirror of
https://github.com/vector-im/element-call.git
synced 2026-06-30 18:02:56 +00:00
The rule of thumb to avoid resource leaks is that you should never call ObservableScope methods in a callback unless the ObservableScope is directly passed to or created inside that callback. I had a go at codifying this as a lint rule.
6 lines
113 B
JavaScript
6 lines
113 B
JavaScript
module.exports = {
|
|
rules: {
|
|
"no-observablescope-leak": require("./NoObservableScopeLeak").default,
|
|
},
|
|
};
|