Skip to content

Commit

Permalink
linting setting
Browse files Browse the repository at this point in the history
  • Loading branch information
rayman2000 committed Aug 28, 2024
1 parent 641ee3c commit 56b94b2
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 7 deletions.
35 changes: 29 additions & 6 deletions client/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"ignorePatterns": ["webpack.config.js"],
"ignorePatterns": [
"webpack.config.js"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
Expand All @@ -23,7 +25,10 @@
"error"
],
"@typescript-eslint/explicit-function-return-type": [ // require a return type for functions
"error", { "allowExpressions": true }
"error",
{
"allowExpressions": true
}
],
"@typescript-eslint/no-misused-promises": [ // disallow promises in place where they are unexpected and thus not handled
"error"
Expand All @@ -32,11 +37,29 @@
"error"
],
"@typescript-eslint/no-empty-function": [
"warn", { "allow": ["arrowFunctions"] }
"warn",
{
"allow": [
"arrowFunctions"
]
}
],
"@typescript-eslint/no-inferrable-types": [
"error", { "ignoreParameters": true, "ignoreProperties": true }
"error",
{
"ignoreParameters": true,
"ignoreProperties": true
}
],
"no-inner-declarations": "off"
"no-inner-declarations": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "_",
"varsIgnorePattern": "_",
"caughtErrorsIgnorePattern": "_"
}
]
}
}
}
2 changes: 1 addition & 1 deletion client/src/Settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ export class Settings {
try {
fs.accessSync(path);
return { path: path, exists: true };
} catch (e) {
} catch (_) {
// intentially empty as it simply means that the file does not exist
}
if (executable && this.isWin && !path.toLowerCase().endsWith(".exe")) {
Expand Down

0 comments on commit 56b94b2

Please sign in to comment.