chore: replace deprecated String.prototype.substr() (#6333)

* chore: replace deprecated String.prototype.substr()

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

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>

* refactor: add prefer slice lint rule and fix errors

Co-authored-by: erezrokah <erezrokah@users.noreply.github.com>
This commit is contained in:
CommanderRoot
2022-03-28 19:29:56 +02:00
committed by GitHub
parent de624a9c11
commit 59b9348093
20 changed files with 157 additions and 106 deletions

View File

@ -128,11 +128,12 @@
"cypress-jest-adapter": "^0.1.1",
"cypress-plugin-tab": "^1.0.0",
"dotenv": "^10.0.0",
"eslint": "^7.0.0",
"eslint": "^8.12.0",
"eslint-plugin-cypress": "^2.6.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.17.0",
"eslint-plugin-unicorn": "^41.0.1",
"execa": "^5.0.0",
"friendly-errors-webpack-plugin": "^1.7.0",
"fs-extra": "^10.0.0",