fix javascript syntax recognizing parts of words as keywords (#2462)

This commit is contained in:
Mikko 2022-07-17 22:18:56 +03:00 committed by GitHub
parent 5e035efbcb
commit 3d4012850a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,7 @@ rules:
- statement: "\\b(get|if|import|from|in|of|instanceof|let|new|reject|resolve|return)\\b"
- statement: "\\b(set|static|super|switch|this|throw|try|typeof|var|void|while|with|yield)\\b"
# reserved but unassigned
- error: "\\b(enum|implements|interface|package|private|protected|public)"
- error: "\\b(enum|implements|interface|package|private|protected|public)\\b"
- constant: "\\b(globalThis|Infinity|null|undefined|NaN)\\b"
- constant: "\\b(null|undefined|NaN)\\b"
- constant: "\\b(true|false)\\b"