Skip to content

Commit c2c9cc1

Browse files
author
scrhartley
committed
Add substr lint
1 parent 5520566 commit c2c9cc1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@
6767
"no-useless-call": 0,
6868
"no-useless-escape": 0,
6969
"no-unused-expressions": 0,
70+
"no-restricted-properties": ["error", {
71+
"property": "substr",
72+
"message": "Use .slice or .substring instead of .substr"
73+
}],
7074
"space-before-function-paren": [
7175
"error",
7276
"never"

0 commit comments

Comments
 (0)