electron/.eslintrc.json

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
1.1 KiB
JSON
Raw Normal View History

{
"extends": "standard",
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"env": {
"browser": true
},
"rules": {
"semi": ["error", "always"],
"no-var": "error",
2020-10-29 21:23:22 +00:00
"no-unused-vars": "off",
"no-global-assign": "off",
"guard-for-in": "error",
"@typescript-eslint/no-unused-vars": ["error", {
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": true
}],
"prefer-const": ["error", {
"destructuring": "all"
}],
2019-11-01 20:37:02 +00:00
"standard/no-callback-literal": "off",
2020-10-29 21:23:22 +00:00
"node/no-deprecated-api": "off"
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"overrides": [
{
"files": "*.js",
"rules": {
2020-10-29 21:23:22 +00:00
"@typescript-eslint/no-unused-vars": "off"
}
2019-11-01 20:37:02 +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
}
}
]
}