Commit 4d2bc7fc authored by Yorrd's avatar Yorrd
Browse files

typescript configs

parent 0958073b
......@@ -24,7 +24,7 @@ export default class Anonymizer {
const config: Config = JSON.parse((await readFile("./secrets.json")).toString());
if (!config[this.profileName]) {
config[this.profileName] = await genSalt(10);
await writeFile("./secrets.json", JSON.stringify(config, null, 2));
await writeFile("./secrets.json", JSON.stringify(config, null, 4));
}
this.secret = config[this.profileName];
......
{
"compilerOptions": {
"target": "es5",
"lib": ["esnext", "es7", "webworker", "es5", "es6", "dom"],
"baseUrl": ".",
"paths": {
"*": ["*"]
},
"module": "commonjs",
"moduleResolution": "node",
"experimentalDecorators": true,
"sourceMap": true,
"allowJs": true,
"plugins": [
{
"name": "typescript-lit-html-plugin"
}
],
"strict": true
},
"compileOnSave": true
}
{
"defaultSeverity": "error",
"extends": ["tslint:recommended"],
"jsRules": {},
"rules": {
"curly": false,
"arrow-parens": false,
"object-literal-sort-keys": false,
"ordered-imports": false,
"max-classes-per-file": false,
"member-ordering": false,
"object-literal-key-quotes": false
},
"rulesDirectory": []
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment