gearheads
/
mastodon
Archived
2
0
Fork 0
Commit Graph

4 Commits (be0bc9acbffe2d6126f382b946be0469d756048c)

Author SHA1 Message Date
CommanderRoot 0ec695e036
Replace deprecated String.prototype.substr() (#17949)
* Replace deprecated String.prototype.substr()

.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated

* Change String.prototype.substring() to String.prototype.slice()

.substring() and .slice() work very similary but .slice() is a bit faster and stricter

* Add ESLint rule to forbid usage of .substr and .substring

.substr() is deprecated and .substring() is very similar to .slice() so better to use .slice() at all times

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
2022-04-04 12:19:45 -04:00
abcang bb9d4e2776
Enable promise/catch-or-return allowFinally (#14289) 2020-07-11 23:51:22 +02:00
Eugen Rochko 1f95190202
Refactor icons in web UI to use Icon component (#9951)
* Refactor uses of icons to an Icon component in web UI

* Refactor options passed to the Icon component

* Make tests work with absolute component paths
2019-02-01 00:14:05 +01:00
Yamagishi Kazutoshi d5bdfaf0bb Increase files checked by ESLint (#9705) 2019-01-04 11:28:38 +01:00