Update tsconfig and tslint, fix issues

This commit is contained in:
Slava Bacherikov committed 2018-01-20 00:45:34 +02:00
1 parent 80cb34dbe1
commit 9bea83617f
4 files changed
+15 -7

No files matched your search

+1 -1
View File
@@ -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("");
+2 -2
View File
@@ -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,
+5 -3
View File
@@ -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"
]
}
+7 -1
View File
@@ -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": []
}