mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-03-10 21:18:27 +01:00
Add camelCase rule to eslint
This commit is contained in:
parent
670eefbc97
commit
b837bd6f59
@ -44,5 +44,6 @@
|
|||||||
"named": "never",
|
"named": "never",
|
||||||
"asyncArrow": "always" }],
|
"asyncArrow": "always" }],
|
||||||
"switch-colon-spacing": ["error"],
|
"switch-colon-spacing": ["error"],
|
||||||
|
"camelcase": ["error", { allow: ["^XK_", "^XF86XK_"] }],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -21,12 +21,14 @@ export default class Deflator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
deflate(inData) {
|
deflate(inData) {
|
||||||
|
/* eslint-disable camelcase */
|
||||||
this.strm.input = inData;
|
this.strm.input = inData;
|
||||||
this.strm.avail_in = this.strm.input.length;
|
this.strm.avail_in = this.strm.input.length;
|
||||||
this.strm.next_in = 0;
|
this.strm.next_in = 0;
|
||||||
this.strm.output = this.outputBuffer;
|
this.strm.output = this.outputBuffer;
|
||||||
this.strm.avail_out = this.chunkSize;
|
this.strm.avail_out = this.chunkSize;
|
||||||
this.strm.next_out = 0;
|
this.strm.next_out = 0;
|
||||||
|
/* eslint-enable camelcase */
|
||||||
|
|
||||||
let lastRet = deflate(this.strm, Z_FULL_FLUSH);
|
let lastRet = deflate(this.strm, Z_FULL_FLUSH);
|
||||||
let outData = new Uint8Array(this.strm.output.buffer, 0, this.strm.next_out);
|
let outData = new Uint8Array(this.strm.output.buffer, 0, this.strm.next_out);
|
||||||
@ -41,9 +43,11 @@ export default class Deflator {
|
|||||||
let chunks = [outData];
|
let chunks = [outData];
|
||||||
let totalLen = outData.length;
|
let totalLen = outData.length;
|
||||||
do {
|
do {
|
||||||
|
/* eslint-disable camelcase */
|
||||||
this.strm.output = new Uint8Array(this.chunkSize);
|
this.strm.output = new Uint8Array(this.chunkSize);
|
||||||
this.strm.next_out = 0;
|
this.strm.next_out = 0;
|
||||||
this.strm.avail_out = this.chunkSize;
|
this.strm.avail_out = this.chunkSize;
|
||||||
|
/* eslint-enable camelcase */
|
||||||
|
|
||||||
lastRet = deflate(this.strm, Z_FULL_FLUSH);
|
lastRet = deflate(this.strm, Z_FULL_FLUSH);
|
||||||
|
|
||||||
@ -69,9 +73,11 @@ export default class Deflator {
|
|||||||
outData = newData;
|
outData = newData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* eslint-disable camelcase */
|
||||||
this.strm.input = null;
|
this.strm.input = null;
|
||||||
this.strm.avail_in = 0;
|
this.strm.avail_in = 0;
|
||||||
this.strm.next_in = 0;
|
this.strm.next_in = 0;
|
||||||
|
/* eslint-enable camelcase */
|
||||||
|
|
||||||
return outData;
|
return outData;
|
||||||
}
|
}
|
||||||
|
@ -22,6 +22,7 @@ export default class Inflate {
|
|||||||
setInput(data) {
|
setInput(data) {
|
||||||
if (!data) {
|
if (!data) {
|
||||||
//FIXME: flush remaining data.
|
//FIXME: flush remaining data.
|
||||||
|
/* eslint-disable camelcase */
|
||||||
this.strm.input = null;
|
this.strm.input = null;
|
||||||
this.strm.avail_in = 0;
|
this.strm.avail_in = 0;
|
||||||
this.strm.next_in = 0;
|
this.strm.next_in = 0;
|
||||||
@ -29,6 +30,7 @@ export default class Inflate {
|
|||||||
this.strm.input = data;
|
this.strm.input = data;
|
||||||
this.strm.avail_in = this.strm.input.length;
|
this.strm.avail_in = this.strm.input.length;
|
||||||
this.strm.next_in = 0;
|
this.strm.next_in = 0;
|
||||||
|
/* eslint-enable camelcase */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,8 +43,10 @@ export default class Inflate {
|
|||||||
this.strm.output = new Uint8Array(this.chunkSize);
|
this.strm.output = new Uint8Array(this.chunkSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* eslint-disable camelcase */
|
||||||
this.strm.next_out = 0;
|
this.strm.next_out = 0;
|
||||||
this.strm.avail_out = expected;
|
this.strm.avail_out = expected;
|
||||||
|
/* eslint-enable camelcase */
|
||||||
|
|
||||||
let ret = inflate(this.strm, 0); // Flush argument not used.
|
let ret = inflate(this.strm, 0); // Flush argument not used.
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
|
@ -17,12 +17,14 @@ function _inflator(compText, expected) {
|
|||||||
strm.output = new Uint8Array(chunkSize);
|
strm.output = new Uint8Array(chunkSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* eslint-disable camelcase */
|
||||||
strm.input = compText;
|
strm.input = compText;
|
||||||
strm.avail_in = strm.input.length;
|
strm.avail_in = strm.input.length;
|
||||||
strm.next_in = 0;
|
strm.next_in = 0;
|
||||||
|
|
||||||
strm.next_out = 0;
|
strm.next_out = 0;
|
||||||
strm.avail_out = expected.length;
|
strm.avail_out = expected.length;
|
||||||
|
/* eslint-enable camelcase */
|
||||||
|
|
||||||
let ret = inflate(strm, 0);
|
let ret = inflate(strm, 0);
|
||||||
|
|
||||||
|
@ -70,11 +70,13 @@ function deflateWithSize(data) {
|
|||||||
strm.output = new Uint8Array(chunkSize);
|
strm.output = new Uint8Array(chunkSize);
|
||||||
deflateInit(strm, 5);
|
deflateInit(strm, 5);
|
||||||
|
|
||||||
|
/* eslint-disable camelcase */
|
||||||
strm.input = unCompData;
|
strm.input = unCompData;
|
||||||
strm.avail_in = strm.input.length;
|
strm.avail_in = strm.input.length;
|
||||||
strm.next_in = 0;
|
strm.next_in = 0;
|
||||||
strm.next_out = 0;
|
strm.next_out = 0;
|
||||||
strm.avail_out = chunkSize;
|
strm.avail_out = chunkSize;
|
||||||
|
/* eslint-enable camelcase */
|
||||||
|
|
||||||
deflate(strm, 3);
|
deflate(strm, 3);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user