Skip to content

Commit

Permalink
HUD fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benc-uk committed Aug 10, 2023
1 parent eb9ae5d commit 2fcf852
Show file tree
Hide file tree
Showing 18 changed files with 314 additions and 290 deletions.
67 changes: 32 additions & 35 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,41 +1,38 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
// Standard rules
"no-var": "error",
"prefer-const": "error",
"no-unused-vars": "off",
"no-undef": "error",
"env": {
"browser": true,
"es2021": true
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/strict"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"rules": {
// Standard rules
"no-var": "error",
"prefer-const": "error",
"no-unused-vars": "off",
"no-undef": "error",

// Prevents duplicate imports
"no-duplicate-imports": "error",

// Prevents return in constructor
"no-constructor-return": "error",
// Prevents duplicate imports
"no-duplicate-imports": "error",

// Prevents return in promise executor
"no-promise-executor-return": "error",
// Prevents return in constructor
"no-constructor-return": "error",

// disable string concatenation
"prefer-template": "error",
// Prevents return in promise executor
"no-promise-executor-return": "error",

// TypeScript specific
"@typescript-eslint/no-unused-vars" : "error",
"@typescript-eslint/no-explicit-any": "error"
}
// disable string concatenation
"prefer-template": "error",

"dot-notation": "error",
"func-style": ["error", "declaration", { "allowArrowFunctions": true }],
"object-shorthand": "error",
"capitalized-comments": "error",
"spaced-comment": "error"
}
}
Loading

0 comments on commit 2fcf852

Please sign in to comment.