mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-16 21:05:30 +03:00
chore: add eslint
* add eslint with space rules to cover what sonarcloud doesn't * run lint in travis * add eslint vue config
This commit is contained in:
parent
bc47878b30
commit
d396d97e5e
33 changed files with 884 additions and 188 deletions
|
@ -60,7 +60,7 @@ DataView.prototype.read8 = function() {
|
|||
DataView.prototype.read16 = function() {
|
||||
this.offset += 2;
|
||||
if (this.byteLength >= this.offset) {
|
||||
return this.getInt16(this.offset-2, 1);
|
||||
return this.getInt16(this.offset-2, 1);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
@ -69,7 +69,7 @@ DataView.prototype.read16 = function() {
|
|||
DataView.prototype.read32 = function() {
|
||||
this.offset += 4;
|
||||
if (this.byteLength >= this.offset) {
|
||||
return this.getInt32(this.offset-4, 1);
|
||||
return this.getInt32(this.offset-4, 1);
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue