build: use typescript for internal Electron JS code (#16441)

This commit is contained in:
Samuel Attard
2019-02-06 10:27:20 -08:00
committed by GitHub
parent 858781ba83
commit 26df9992cf
19 changed files with 682 additions and 198 deletions

View File

@@ -1,12 +1,21 @@
{
"extends": "standard",
"parser": "typescript-eslint-parser",
"plugins": ["typescript"],
"env": {
"browser": true
},
"rules": {
"no-var": "error",
"no-unused-vars": 0,
"no-global-assign": 0,
"typescript/no-unused-vars": "error",
"prefer-const": ["error", {
"destructuring": "all"
}]
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
}
}