2018-09-15 17:51:23 +00:00
|
|
|
{
|
2022-03-25 01:39:03 +00:00
|
|
|
"root": true,
|
2018-09-15 17:51:23 +00:00
|
|
|
"extends": "standard",
|
2019-03-07 20:56:02 +00:00
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"plugins": ["@typescript-eslint"],
|
2018-09-15 17:51:23 +00:00
|
|
|
"env": {
|
|
|
|
"browser": true
|
2018-09-28 23:17:00 +00:00
|
|
|
},
|
|
|
|
"rules": {
|
2019-03-07 20:56:02 +00:00
|
|
|
"semi": ["error", "always"],
|
2018-10-02 01:56:31 +00:00
|
|
|
"no-var": "error",
|
2020-10-29 21:23:22 +00:00
|
|
|
"no-unused-vars": "off",
|
|
|
|
"guard-for-in": "error",
|
2019-03-07 20:56:02 +00:00
|
|
|
"@typescript-eslint/no-unused-vars": ["error", {
|
|
|
|
"vars": "all",
|
|
|
|
"args": "after-used",
|
2020-11-10 17:06:03 +00:00
|
|
|
"ignoreRestSiblings": true
|
2019-03-07 20:56:02 +00:00
|
|
|
}],
|
2018-10-02 01:56:31 +00:00
|
|
|
"prefer-const": ["error", {
|
|
|
|
"destructuring": "all"
|
2019-04-30 20:59:47 +00:00
|
|
|
}],
|
2024-10-03 04:36:15 +00:00
|
|
|
"n/no-callback-literal": "off",
|
|
|
|
"import/newline-after-import": "error",
|
|
|
|
"import/order": ["error", {
|
|
|
|
"alphabetize": {
|
|
|
|
"order": "asc"
|
|
|
|
},
|
|
|
|
"newlines-between": "always",
|
|
|
|
"pathGroups": [
|
|
|
|
{
|
|
|
|
"pattern": "@electron/internal/**",
|
|
|
|
"group": "external",
|
|
|
|
"position": "before"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"pattern": "@electron/**",
|
|
|
|
"group": "external",
|
|
|
|
"position": "before"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"pattern": "{electron,electron/**}",
|
|
|
|
"group": "external",
|
|
|
|
"position": "before"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"pathGroupsExcludedImportTypes": [],
|
|
|
|
"distinctGroup": true,
|
|
|
|
"groups": [
|
|
|
|
"external",
|
|
|
|
"builtin",
|
|
|
|
["sibling", "parent"],
|
|
|
|
"index",
|
|
|
|
"type"
|
|
|
|
]
|
|
|
|
}]
|
2019-02-06 18:27:20 +00:00
|
|
|
},
|
|
|
|
"parserOptions": {
|
|
|
|
"ecmaVersion": 6,
|
|
|
|
"sourceType": "module"
|
2019-03-07 20:56:02 +00:00
|
|
|
},
|
|
|
|
"overrides": [
|
2020-10-26 02:59:35 +00:00
|
|
|
{
|
|
|
|
"files": "*.ts",
|
|
|
|
"rules": {
|
|
|
|
"no-undef": "off",
|
|
|
|
"no-redeclare": "off",
|
|
|
|
"@typescript-eslint/no-redeclare": ["error"],
|
|
|
|
"no-use-before-define": "off"
|
|
|
|
}
|
|
|
|
},
|
2019-11-01 20:37:02 +00:00
|
|
|
{
|
|
|
|
"files": "*.d.ts",
|
|
|
|
"rules": {
|
2020-10-29 21:23:22 +00:00
|
|
|
"no-useless-constructor": "off",
|
|
|
|
"@typescript-eslint/no-unused-vars": "off"
|
2019-11-01 20:37:02 +00:00
|
|
|
}
|
2019-03-07 20:56:02 +00:00
|
|
|
}
|
|
|
|
]
|
2018-09-15 17:51:23 +00:00
|
|
|
}
|