Update tsconfig and tslint, fix issues

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

View file

@ -116,7 +116,7 @@ function fsi20DecNewKeygen(serial: string): string {
"9137605284", "3974018625", "8052974163" "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); let temp = parseInt(serial.charAt(val), 10);
return fKeys[i].charAt(temp); return fKeys[i].charAt(temp);
}).join(""); }).join("");

View file

@ -1,6 +1,6 @@
/* tslint:disable:no-bitwise */ /* tslint:disable:no-bitwise */
import { import {
asciiToKeyboardEnc, keyboardEncToAscii, makeSolver, reversedScanCodes, Solver asciiToKeyboardEnc, keyboardEncToAscii, reversedScanCodes, Solver
} from "./utils"; } from "./utils";
export const enum PhoenixErrors { export const enum PhoenixErrors {
@ -36,7 +36,7 @@ const digitsOnly: string[] = "123456789".split("");
const lettersOnly: string[] = "abcdefghijklmnopqrstuvwxyz".split(""); const lettersOnly: string[] = "abcdefghijklmnopqrstuvwxyz".split("");
const alphaNumeric: string[] = lettersOnly.concat(digitsOnly); // const alphaNumeric: string[] = lettersOnly.concat(digitsOnly);
const defaultPhoenix: PhoenixInfo = { const defaultPhoenix: PhoenixInfo = {
shift: 0, shift: 0,

View file

@ -3,14 +3,16 @@
"module": "commonjs", "module": "commonjs",
"target": "es3", "target": "es3",
"noImplicitAny": true, "noImplicitAny": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"strictNullChecks": true, "strictNullChecks": true,
"strict": true,
"sourceMap": true, "sourceMap": true,
"rootDir": "src/",
"outDir": "dist/" "outDir": "dist/"
}, },
"exclude": [ "exclude": [
"node_modules" "node_modules"
],
"files": [
"src/*.ts"
] ]
} }

View file

@ -11,7 +11,13 @@
"interface-name": [true, "never-prefix"], "interface-name": [true, "never-prefix"],
"object-literal-key-quotes": false, "object-literal-key-quotes": false,
"object-literal-sort-keys": 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": [] "rulesDirectory": []
} }