mirror of
https://github.com/bacher09/pwgen-for-bios.git
synced 2024-09-19 15:28:54 -04:00
Update tsconfig and tslint, fix issues
This commit is contained in:
parent
80cb34dbe1
commit
9bea83617f
4 changed files with 15 additions and 7 deletions
|
@ -116,7 +116,7 @@ function fsi20DecNewKeygen(serial: string): string {
|
|||
"9137605284", "3974018625", "8052974163"
|
||||
];
|
||||
|
||||
return [0, 2, 5, 11, 13, 15, 16].map((val, i, arr) => {
|
||||
return [0, 2, 5, 11, 13, 15, 16].map((val, i) => {
|
||||
let temp = parseInt(serial.charAt(val), 10);
|
||||
return fKeys[i].charAt(temp);
|
||||
}).join("");
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* tslint:disable:no-bitwise */
|
||||
import {
|
||||
asciiToKeyboardEnc, keyboardEncToAscii, makeSolver, reversedScanCodes, Solver
|
||||
asciiToKeyboardEnc, keyboardEncToAscii, reversedScanCodes, Solver
|
||||
} from "./utils";
|
||||
|
||||
export const enum PhoenixErrors {
|
||||
|
@ -36,7 +36,7 @@ const digitsOnly: string[] = "123456789".split("");
|
|||
|
||||
const lettersOnly: string[] = "abcdefghijklmnopqrstuvwxyz".split("");
|
||||
|
||||
const alphaNumeric: string[] = lettersOnly.concat(digitsOnly);
|
||||
// const alphaNumeric: string[] = lettersOnly.concat(digitsOnly);
|
||||
|
||||
const defaultPhoenix: PhoenixInfo = {
|
||||
shift: 0,
|
||||
|
|
|
@ -3,14 +3,16 @@
|
|||
"module": "commonjs",
|
||||
"target": "es3",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitReturns": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"strictNullChecks": true,
|
||||
"strict": true,
|
||||
"sourceMap": true,
|
||||
"rootDir": "src/",
|
||||
"outDir": "dist/"
|
||||
},
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
],
|
||||
"files": [
|
||||
"src/*.ts"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -11,7 +11,13 @@
|
|||
"interface-name": [true, "never-prefix"],
|
||||
"object-literal-key-quotes": false,
|
||||
"object-literal-sort-keys": false,
|
||||
"no-namespace": false
|
||||
"class-name": true,
|
||||
"no-eval": true,
|
||||
"eofline": true,
|
||||
"indent": [true, "spaces", 4],
|
||||
"no-null-keyword": true,
|
||||
"encoding": true,
|
||||
"no-namespace": true
|
||||
},
|
||||
"rulesDirectory": []
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue