added a ts rule to remove const if necessary