tweak modes
This commit is contained in:
parent
b6a4a34fd2
commit
37b3dc1efd
4 changed files with 8 additions and 5 deletions
|
|
@ -3228,7 +3228,8 @@ var JSHINT = (function () {
|
|||
if (this.id === "++" || this.id === "--") {
|
||||
if (state.option.plusplus) {
|
||||
warning("W016", this, this.id);
|
||||
} else if ((!this.right.identifier || isReserved(this.right)) &&
|
||||
} else if (this.right &&
|
||||
(!this.right.identifier || isReserved(this.right)) &&
|
||||
this.right.id !== "." && this.right.id !== "[") {
|
||||
warning("W017", this);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue