Skip to content

Commit

Permalink
Update tsconfig and tslint, fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bacher09 committed Jan 19, 2018
1 parent 80cb34d commit 9bea836
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/fsi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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("");
Expand Down
4 changes: 2 additions & 2 deletions src/phoenix.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* tslint:disable:no-bitwise */
import {
asciiToKeyboardEnc, keyboardEncToAscii, makeSolver, reversedScanCodes, Solver
asciiToKeyboardEnc, keyboardEncToAscii, reversedScanCodes, Solver
} from "./utils";

export const enum PhoenixErrors {
Expand Down Expand Up @@ -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,
Expand Down
8 changes: 5 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
8 changes: 7 additions & 1 deletion tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": []
}

0 comments on commit 9bea836

Please sign in to comment.