Switch code linter to eslint and update deps
Tslint is outdated for quite a while and has been replaced by eslint which now can work with TypeScript as well. This also updates dependencies and fixes all linting errors.
This commit is contained in:
1 parent
ee5f3a8d0d
commit
ea85f539d4
21 files changed
+5621
-5545
No files matched your search
+3
-3
@@ -1,5 +1,5 @@
|
||||
/* eslint-disable no-bitwise */
|
||||
import { makeSolver } from "./utils";
|
||||
/* tslint:disable:no-bitwise */
|
||||
|
||||
function generateCRC16Table(): number[] {
|
||||
let table: number[] = [];
|
||||
@@ -74,7 +74,7 @@ function fsi20DecOldKeygen(serial: string): string {
|
||||
return arr;
|
||||
}
|
||||
|
||||
function decryptCode_old(bytes: number[]) {
|
||||
function decryptCodeOld(bytes: number[]) {
|
||||
const xorKey = ":3-v@e4i";
|
||||
// apply XOR key
|
||||
bytes.forEach((val, i, arr) => {
|
||||
@@ -96,7 +96,7 @@ function fsi20DecOldKeygen(serial: string): string {
|
||||
return bytes.map((b) => (b % 36).toString(36)).join("");
|
||||
}
|
||||
|
||||
return decryptCode_old(codeToBytes(serial));
|
||||
return decryptCodeOld(codeToBytes(serial));
|
||||
}
|
||||
|
||||
/* For Fujitsu-Simens. 6x4 decimal digits */
|
||||
|
||||
Reference in new issue
Block a user