mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
build: use typescript for internal Electron JS code (#16441)
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user