This library contains miscellaneous ESLint linting rules.
Type: problem
Prevents short upper-case string literals being used as values in if statement tests (enumerations or consts are preferred).
const buySell = 'S';
if (buySell === 'S') {
createSellTrade();
}
enum BuySell {
Sell = 'S'
};
const buySell = BuySell.Sell;
if (buySell === BuySell.Sell) {
createSellTrade();
}