Skip to content

Commit ff190ee

Browse files
scrhartleyscrhartley
andauthored
Add substr lint (#3295)
Co-authored-by: scrhartley <scrhartley@github.com>
1 parent 53496ff commit ff190ee

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)