mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-24 11:01:17 -08:00
- Built-in constructors should be called consistently with or without "new" (typescript:S7723) - Negated conditions should be avoided when an else clause is present (typescript:S7735) - Strings should use "replaceAll()" instead of "replace()" with global regex (typescript:S7781) - Use ".some()" instead of ".filter().length" checks or ".find()" for existence testing (typescript:S7754) - React props should be read-only (typescript:S6759) - Number static methods and properties should be preferred over global equivalents (typescript:S7773) - The return value of "useState" should be destructured and named symmetrically (typescript:S6754) - Optional chaining should be preferred (typescript:S6582) - Arrays used only for existence checks should be Sets (typescript:S7776) - Unicode-aware string methods should be used for proper character handling (typescript:S7758)